Closed xulman closed 1 year ago
One concern about using rebuildSceneTree()
is that it would cause something like https://github.com/scenerygraphics/sciview/issues/480 (which already happens, heh).
In https://github.com/scenerygraphics/sciview/pull/499 I used this strategy:
which is part of publishNode, would that be OK in this case?
I think this is complete. @moreApi added publishNode
to the API (go figure). @xulman said he likes publishNode
over Zulip at the 2023 hackathon.
I propose to modify
requestPropEditorRefresh()
to just call therebuildSceneTree()
unless we have something less brutal (like locally updating the tree rather than rebuilding it (from scratch?); or it could trigger two events (Add & Changed)...Events work but need to be used exactly (must match the purpose and the correct object). Intention why a user calls
requestPropEditorRefresh()
is not clear because of its name, this excludes Events to be under the hood.