thomthom / sketchup-observers

0 stars 0 forks source link

Selection observers event differs from UI and Ruby #10

Open thomthom opened 11 years ago

thomthom commented 11 years ago

Original report by me.


#!ruby

attaching #<ObserverTests::SelectionObserver:0xd0f8c0c> to #<Sketchup::Selection:0xe565be0>
onSelectionBulkChange:[#<Sketchup::Selection:0xe565be0>]
onSelectionCleared:[#<Sketchup::Selection:0xe565be0>]
onSelectionBulkChange:[#<Sketchup::Selection:0xe565be0>]

x=Sketchup.active_model.selection[0]
#<Sketchup::ComponentInstance:0xe68e1c0>
sel=Sketchup.active_model.selection
#<Sketchup::Selection:0xe565be0>

sel.clear
onSelectionCleared:[#<Sketchup::Selection:0xe565be0>]
nil

sel.add(x)
onSelectionAdded:[#<Sketchup::Selection:0xe565be0>, #<Sketchup::ComponentInstance:0xe68e1c0>]
1