Skip to content

Commit

Permalink
Don't extend PickHelper. Ref #7
Browse files Browse the repository at this point in the history
  • Loading branch information
thomthom committed Feb 11, 2019
1 parent 19332f2 commit 68984e6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/pick_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ module PickHelper

# @param [Sketchup::View] view
def self.new(view)
pick_helper = view.pick_helper
pick_helper.extend(self)
pick_helper
# TODO: Don't do this! `Sketchup::PickHelper` objects are reused. Cannot
# use `extend` as it with modify the global persistent object.
raise NotImplementedError
# pick_helper = view.pick_helper
# pick_helper.extend(self)
# pick_helper
end

# Return unique set of leaves from the pick paths.
Expand Down

0 comments on commit 68984e6

Please sign in to comment.