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

EMSUSD-671 Remove the load payloads proxy shape attribute #3523

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

Instead, we will always use the existing payload rules dynamic attribute.

  • Remove the "loadPayloads" attribute from the proxy shape.
  • Add Python binding to new functions to set and retrieve if all payloads are loaded or not.
  • Split-up existing load-rules helper functions to give more fined-grained access to the saved load rules in order to support the Python API.
  • Use the new Python helper functions when creating or loading a stage.
  • Adjust one unit test.

@pierrebai-adsk pierrebai-adsk added adsk Related to Autodesk plugin do-not-merge-yet Development is not finished, PR not ready for merge labels Dec 15, 2023
Base automatically changed from bailp/EMSUSD-671/fix-lost-layers to dev December 21, 2023 13:46
@pierrebai-adsk pierrebai-adsk removed the do-not-merge-yet Development is not finished, PR not ready for merge label Dec 21, 2023
Instead, we will always use the existing payload rules dynamic attribute.

- Remove the "loadPayloads" attribute from the proxy shape.
- Add Python binding to new functions to set and retrieve if all payloads are loaded or not.
- Split-up existing load-rules helper functions to give more fined-grained access to the saved load rules in order to support the Python API.
- Use the new Python helper functions when creating or loading a stage.
- Adjust one unit test.
@pierrebai-adsk pierrebai-adsk added ready-for-merge Development process is finished, PR is ready for merge and removed ready-for-merge Development process is finished, PR is ready for merge labels Dec 21, 2023
This ensure backward compatibility with old scene files and avoids having warnings when loading such old scenes. Only make the attribute not show up in the UI to force users to use the context menu to change the loaded status of payloads.
@pierrebai-adsk
Copy link
Collaborator Author

@AramAzhari-adsk @seando-adsk for a refresher: the thing I changed after approval was put back the attribute to avoid warnings when loading old scenes.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jan 9, 2024
@seando-adsk seando-adsk merged commit e8d362c into dev Jan 10, 2024
13 of 15 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-671/remove-payload-attr branch January 10, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin 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