-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EMSUSD-1118 instance selection highlight #3744
Conversation
Detect the need to redo the selection highlight by detecting if the instance count changed. Unfortunately, the instancer index version only changes when an instance was toggle off, not when togged on. Might be a bug or not in USD, but we work around it by tracking the instance count too.
Does it depend on an attribute change? |
The fix is only available in somewhat recent USD versions. Maya 2022 and 2024 are not supported.
Explicitly set the selection instead of trying to change the images because the behavior is different between Maya 2022 and the later versions because the fix is only available starting with Maya 2023. It is simpler to make the text behave the same in all version by explicitly selecting the object that the image expect to be selected. (Even if it was by mistake in Maya 2022...)
26b0890
to
7dd8c08
Compare
Detect the need to redo the selection highlight by detecting if the instance count changed. Unfortunately, the instancer index version only changes when an instance was toggle off, not when togged on. Might be a bug or not in USD, but we work around it by tracking the instance count too.