as the topic.
I run webdialog which attach observer:
> @@myselectionobserver = MySelectionObserver.new()
Sketchup.active_model.selection.add_observer(@@myselectionobserver) # Attach the observer.
In this observer I do same things. And I have to attach another MySelectionObserver wich will make different things
- I can make those two thing in one MySelectionObserver (how to check what caused observer?), or
- I can attach two MySelectionObserver
What way is better? Both observers are colled with webdialogs.