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-129260 - MayaUsd: make building with Ufe mandatory and remove v1 support #3217

Merged
merged 9 commits into from
Jul 18, 2023

Conversation

seando-adsk
Copy link
Collaborator

MAYA-129260 - MayaUsd: make building with Ufe mandatory and remove v1 support

I split the work into smaller chunks, thus the 7 commits. It might be easier to review if you look at each commit separately.

commit 1: 6e409b6: cmake/doc changes to remove optional building with Ufe.
commit 2: f3c633b: code changes to remove "WANT_UFE_BUILD" conditional.
commit 3: 869f652: code changes to remove hard-coded ufe runtime id
commit 4: a04265d: cmake changes to remove conditional Ufe v2
commit 5: 30de1c1: code changes to remove conditional Ufe v2
commit 6: 03c78ae: Replace UFE_NS with "Ufe"
commit 7: e9eb1f9: Don't need "UsdTransform3d/UsdTransform3dHandler/ToggleTransform3d". These were hack for Ufe v1 support.

… support

* cmake/doc changes to remove optional building with Ufe.
… support

* code changes to remove "WANT_UFE_BUILD" conditional.
… support

* code changes to remove hard-coded ufe runtime id
… support

* cmake changes to remove conditional Ufe v2
… support

* code changes to remove conditional Ufe v2
… support

* Don't need "UsdTransform3d/UsdTransform3dHandler/ToggleTransform3d".
  These were hack for Ufe v1 support.
@seando-adsk seando-adsk added ufe Related to UFE component in Maya build Related to building maya-usd repository labels Jul 10, 2023
message(STATUS "UFE not found. UFE features will be disabled.")
endif()
endif()
find_package(UFE 0.2.0 REQUIRED)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ufe is not mandatory and we must find at least v2 (for Maya 2022).

Ufe::Transform3dHandler::Ptr g_OldTransform3dHandler;
Ufe::Transform3dHandler::Ptr g_NewTransform3dHandler;

class ToggleTransform3d : public MPxCommand
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This command was a hack used to revert to Maya 2020 behavior. We don't support this anymore. That means we no longer need the UsdTransform3dHandler and UsdTransform3d.

@@ -227,8 +227,8 @@ Headers should be included in the following order, with each section separated b

#include <string>

#if defined(WANT_UFE_BUILD)
#include <ufe/ufe.h>
#ifdef UFE_V2_FEATURES_AVAILABLE
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need the UFE_V2_FEATURES_AVAILABLE flag if we can only build with UFE V2 available?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah right, this flag will always be available in ufe.h, but I should have used the V3 one here.

… support

* Code review feedback - use Ufe V3 define.
#include <ufe/rtid.h>
#endif

#include <pxr/base/tf/refPtr.h>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this line be deleted?

@seando-adsk seando-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jul 18, 2023
@seando-adsk seando-adsk merged commit 4fd1332 into dev Jul 18, 2023
12 checks passed
@seando-adsk seando-adsk deleted the donnels/MAYA-129260/make_building_with_ufe_mandatory branch July 18, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building maya-usd repository ready-for-merge Development process is finished, PR is ready for merge ufe Related to UFE component in Maya
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants