SketchUp / api-issue-tracker

Public issue tracker for the SketchUp and LayOut's APIs
https://developer.sketchup.com/
38 stars 10 forks source link

SelectionObserver#onSelectionCleared doesn't fire when Selection is cleared by hiding a Tag/Layer #951

Open MSP-Greg opened 3 months ago

MSP-Greg commented 3 months ago

SketchUp/LayOut Version: 2023 & other OS Platform: Windows 11 & Sonoma 14.4

Using a model with more than one tag/layer, select a few entities on a layer, but not the active_layer. Then, hide the tag. The selection will be cleared (Sketchup.active_model.selection.length).

If one has an attached SelectionObserver, none of its methods are fired when the selection is cleared by hiding a tag/layer.

Describe what the expected result is.

SelectionObserver events are fired when hiding tags/layers (thru code or UI) that contain the selection.

May post repro code later...

sketchup[bot] commented 3 months ago

Logged as: SKEXT-4115