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

MAYA-106089: Add Undo/Redo Support for UFE manipulation #956

Merged

Conversation

HamedSabri-adsk
Copy link
Contributor

Adding undo/redo support for UsdTransform3dMayaXformStack.

JGamache-autodesk and others added 30 commits November 4, 2020 15:04
Thanks to @mattyjams for the heads-up and the fix. Added unit test.
When a primvar named map1 is encountered in a UsdMesh, re-use the existing map1 uvSet. Regression from PR 876 which now allows exporting map1 as itself.
…elegateCtx::InsertRprim()

HdRenderIndex::InsertInstancer() itself calls this, so there is no reason to do
so again. It has been that way since at least as far back as core USD 19.11, so
no USD API version guards are necessary.

Starting after core USD 20.11, the signature of InstancerInserted() was changed
to include the HdDirtyBits.

This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@5a73314

(Internal change: 2118195)
…tTokens

This is some prep work for an upcoming UsdLux attribute names update.

This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@92e25a5

(Internal changes: 2119872, 2119882)
…ter when creating/inserting rprims

This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@6772ff6

(Internal change: 2120135)
This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@b5d3809

(Internal change: 2120668)
UsdShadeConnectableAPI now has a concept of containers, and with that the
existing IsShader() and IsNodeGraph() methods were deprecated.

This change corresponds to core USD commit
PixarAnimationStudios/OpenUSD@abda3f0

(Internal changes: 2123154, 2123308)
This identifies core USD commit f7b5f25 (post 20.11 release) as the most recent
supported version of USD:

PixarAnimationStudios/OpenUSD@f7b5f25
# Conflicts:
#	lib/mayaUsd/fileio/utils/meshReadUtils.cpp
# Conflicts:
#	lib/mayaUsd/fileio/shading/shadingModeExporterContext.cpp
…ragment_graph_opacity_vs_transparency"

This reverts commit 1c0de92, reversing
changes made to 7454da1.
…l_multiplication

MAYA-106486 Fix self-specialization bug with textureless materials
updates for building with latest post-20.11 dev branch of core USD
Add blame ignore file with clang-format commit sha
Applies uvChooser nodes whenever the selected UV is not the default UV.
Will merge specialized materials that were created on export solely to handle UV set names mismatches.
…lang_format_off_on

wrap token definitions in clang-format off/clang-format on
Also putting back in the original error message, which will now only run when the def can't be found.  Most of the error conditions will still now be caught by using the new common function though and provide proper error messages.
seando-adsk and others added 18 commits November 27, 2020 11:29
…o time

MAYA-107350 As a user, on the stage AE template I'd like to see what my default prim is
MAYA-107338 As a user, on the stage AE template I'd like to see what my Root Layer is
MAYA-107273 As a user, on the stage AE template I'd like to toggle Purpose=Default

* Bullet-proof some code that can have null path.
…traversing an stage. Storing both keys in an array so they can be revoked later.
```
warning C4251: 'MayaUsd_v0::UsdUndoableItem::_invertFuncs': class 'std::vector<MayaUsd_v0::UsdUndoableItem::InvertFunc,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'MayaUsd_v0::UsdUndoableItem'
```
…_part_2

Proxy Shape AE Template - Part 2
…vice_support

MAYA-106089: Undo/Redo support for USD data model.
@HamedSabri-adsk HamedSabri-adsk added core Related to core library workflows Related to in-context workflows labels Dec 1, 2020
@HamedSabri-adsk
Copy link
Contributor Author

@kxl-adsk @ppt-adsk

Commits to look at are:

Add undo/redo support
5df6b3c

clean up c-style pointer
8e32ac4

Copy link
Collaborator

@ppt-adsk ppt-adsk left a comment

Choose a reason for hiding this comment

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

LGTM! With the new undo / redo scheme, there is some cleanup that can be done in the undoable command, but I can do that in my follow-up editTransform3d branch. In that branch I've also changed the signature of the std::function objects, but again I'll handle that. Great work!

@HamedSabri-adsk HamedSabri-adsk merged commit 625c337 into ufe-manipulation Dec 1, 2020
@HamedSabri-adsk HamedSabri-adsk deleted the sabrih/MAYA-106089/support_undo_redo_manip branch December 1, 2020 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to core library workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants