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

Removed an artifical crash in transform operations and replaced it with a asserts. #2900

Conversation

AramAzhari-adsk
Copy link
Collaborator

Fixes the crash when multiple instances of the same stage file are being rotated / scaled simultaneously.

…th a asserts.

Fixes the crash when multiple instances of the same stage file are being rotated / scaled simultaneously.
@AramAzhari-adsk
Copy link
Collaborator Author

For any other TF_Axiom that isn't directly resolving the issues in this particular jira, we'll have a separate task to refactor.

@@ -520,7 +520,7 @@ Ufe::ScaleUndoableCommand::Ptr UsdTransform3dMayaXformStack::scaleCmd(double x,
UsdGeomXformable xformable(usdSceneItem->prim());

auto s = xformable.AddScaleOp(UsdGeomXformOp::PrecisionFloat, opSuffix);
TF_AXIOM(s);
TF_VERIFY(s);
Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk Feb 24, 2023

Choose a reason for hiding this comment

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

There are similar case for scale etc, for example line 687 (for some reason, github won't let me write this comment on line 687... seems we can only comment on modified lines!)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Those are actually pivot commands. I've noticed any translation cmd such as translateCmd, translateRotatePivotCmd etc do not have any crash issues.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I hate that github won't let you comment on unmodified lines!

@AramAzhari-adsk AramAzhari-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Feb 28, 2023
@seando-adsk seando-adsk merged commit d32f4fc into dev Feb 28, 2023
@seando-adsk seando-adsk deleted the azharia/MAYA-121916/multiple-instances-same-reference-transform-crashfix branch February 28, 2023 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin crash 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