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-499 - Dirty layers don't get saved in Maya files #3418

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

samuelliu-adsk
Copy link
Collaborator

@samuelliu-adsk samuelliu-adsk commented Oct 26, 2023

A fix for previous PR: #3402
Github issue: #3243

Adding -t shape to the command will exclude the "time" nodes but leave only Bifrost nodes.
Deleting the else part will not work because for Bifrost to save properly we will need to check for cache

@samuelliu-adsk samuelliu-adsk added the workflows Related to in-context workflows label Oct 26, 2023
@@ -1589,7 +1589,7 @@ bool MayaUsdProxyShapeBase::isStageIncoming() const

// Check what is the cache connected to
MStringArray result;
MGlobal::executeCommand(("listConnections -shapes on " + this->name()), result);
MGlobal::executeCommand(("listConnections -t shape -shapes on " + this->name()), result);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any reason why you did not choose to go with the solution that was suggested on github? I would like to understand why that solution was not correct? The suggestion was:

bool isIncomingStage = false;
if (!inDataHandle.data().isNull()) {
    isIncomingStage = true;
} 

Copy link
Collaborator Author

@samuelliu-adsk samuelliu-adsk Oct 27, 2023

Choose a reason for hiding this comment

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

Hi @pierrebai-adsk , the reason is stated in the description. So if we remove the else part and leave it like this it will not work properly for Bifrost. For some reason (I get the conclusion from debugging), inDataHandle can still be Null even if we have Bifrost shape connected to it. In that case, we need to check the stage Cache and find the Bifrost shape in Cache. Hence the else part.

@samuelliu-adsk samuelliu-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 27, 2023
@seando-adsk seando-adsk merged commit 8b7e4a4 into dev Oct 31, 2023
@seando-adsk seando-adsk deleted the samuelliu-adsk/EMSUSD-499/check_incoming branch October 31, 2023 13:38
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