Skip to content
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

MAYA-128764 fix AE refresh #3034

Merged
merged 4 commits into from
Apr 26, 2023
Merged

Conversation

pierrebai-adsk
Copy link
Collaborator

Setting the value of a USD property that previously had the default value for that property creates a USD property-spec, which trigger a USD notification about a property being added. In reality, it is not that a new custom property is added, just that an opinion about a property that is being set.

The attribute editor handled the addition of a property by recreating the UI entirely.

To differentiate between a real property being added and a property getting a non-default value, we now add a guard in the various places where we are setting a value to allow the notification handler to know the difference.

Setting the value of a USD property that previously had the default value for that property creates a USD property-spec, which trigger a USD notification about a property being added. In reality, it is not that a new custom property is added, just that an opinion about a proerty that is being set.

The attribute editor handled the addition of a property by recreating the Ui entirely.

To differentiate between a real property being added and a property gettig a non-default value, we now add a guard in the various places where we are setting a value to allow the notification handler to know the difference.
@pierrebai-adsk pierrebai-adsk added enhancement New feature or request adsk Related to Autodesk plugin labels Apr 21, 2023
seando-adsk
seando-adsk previously approved these changes Apr 24, 2023
- Make sure undo/redo also are flagged as attribute-setting and not adding attributes.
- Fix expected count of add/set in the attribute unit test.
- Fix the UI node unit test.
samuelliu-adsk
samuelliu-adsk previously approved these changes Apr 24, 2023
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Apr 24, 2023
@seando-adsk seando-adsk removed the ready-for-merge Development process is finished, PR is ready for merge label Apr 25, 2023
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Apr 25, 2023
@pierrebai-adsk
Copy link
Collaborator Author

The only PF that failed are due to the known problem with artifactory.

@seando-adsk seando-adsk merged commit 73b846f into dev Apr 26, 2023
@seando-adsk seando-adsk deleted the bailp/MAYA-128764/excessive-ae-refreshes branch April 26, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin enhancement New feature or request ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants