-
Notifications
You must be signed in to change notification settings - Fork 203
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
Removed an artifical crash in transform operations and replaced it with a asserts. #2900
Conversation
…th a asserts. Fixes the crash when multiple instances of the same stage file are being rotated / scaled simultaneously.
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); |
There was a problem hiding this comment.
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!)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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!
Fixes the crash when multiple instances of the same stage file are being rotated / scaled simultaneously.