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-190 fix for lights after edit-as-Maya #3198

Merged
merged 6 commits into from
Jul 11, 2023

Conversation

pierrebai-adsk
Copy link
Collaborator

Adding missing UFE notification after re-adding the edited object

The new code mirror what is done in edit-as-Maya when the object transtions from being USD to being Maya. When it did, the UFE light proxy in Maya was deleted, and the missing notification in merge-to-USD (and discard-edits) was preventing the proxy from being recreated.

…object

The new code mirror what is done in edit-as-Maya when the object transtions from being USD to being Maya. When it did, the UFE light proxy in Maya was deleted,  and the missing notification in merge-to-USD was preventing the proxy from being recreated.
@pierrebai-adsk pierrebai-adsk added bug Something isn't working adsk Related to Autodesk plugin labels Jul 5, 2023
vlasovi
vlasovi previously approved these changes Jul 5, 2023
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 5, 2023
@pierrebai-adsk pierrebai-adsk removed the ready-for-merge Development process is finished, PR is ready for merge label Jul 5, 2023
- No longer send an explicit add notification for the item that was converted from Maya to USD.
- Call the parent function instead of the defaultParent function. We only need to invalidate the scene from the point where the object were edited.
- When calling defaultParent, the entire Maya cene would be invalidated.
- Change the implementation of the proxy shape default parent since it is a Maya node, its default parent must also be a Maya node.
- Fortunately, the old behavior was only used when reparenting and one cannot change the location of the USD virtual root, so the old bahavior was never used in  practice, as far as I can tell.
seando-adsk
seando-adsk previously approved these changes Jul 5, 2023
Copy link
Collaborator

@seando-adsk seando-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great thanks for investigating and the explanation code comment.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 5, 2023
@pierrebai-adsk
Copy link
Collaborator Author

The only change sin cethe last approval is I only merged dev branch into this branch.

seando-adsk
seando-adsk previously approved these changes Jul 10, 2023
@pierrebai-adsk pierrebai-adsk removed the ready-for-merge Development process is finished, PR is ready for merge label Jul 10, 2023
@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 10, 2023
@seando-adsk seando-adsk added workflows Related to in-context workflows and removed bug Something isn't working adsk Related to Autodesk plugin labels Jul 11, 2023
@seando-adsk seando-adsk merged commit 3d59458 into dev Jul 11, 2023
@seando-adsk seando-adsk deleted the bailp/EMSUSD-190/lost-light branch July 11, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants