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

Prepare for upcoming UFE interface changes to support Maya transform … #827

Merged
merged 3 commits into from
Oct 14, 2020

Conversation

ppt-adsk
Copy link
Collaborator

@ppt-adsk ppt-adsk commented Oct 13, 2020

…stack.

The changes are mostly minor renames, to conform to upcoming UFE 0.2.25 interfaces.

Copy link

@kxl-adsk kxl-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!

@kxl-adsk kxl-adsk added ufe Related to UFE component in Maya ufe-usd Related to UFE-USD plugin in Maya-Usd workflows Related to in-context workflows labels Oct 13, 2020
Comment on lines 63 to 67
#if UFE_PREVIEW_VERSION_NUM >= 2025
bool set(double x, double y, double z) override;
#else
bool translate(double x, double y, double z) override;
#endif
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking at UFE v1 I see the translate method exists. So I think you need more than just a UFE_PREVIEW_VERSION_NUM check here. Because later when we cleanup and remove these (because Maya PR has this version) we will still need an ifdef to support the UFE v1 version with translate (not set) method.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great work thanks. I think we should use this same pattern moving forwards. It will be a great help when we come back and cleanup this UFE preview checks.

@ppt-adsk ppt-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Oct 14, 2020
@@ -55,7 +55,7 @@ namespace
template<typename T>
void addMetadataCount(const T& op, std::string& tooltip, bool& needComma, const std::string& singular, const std::string& plural)
{
T::ItemVector refs;
typename T::ItemVector refs;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for fixing this.

@seando-adsk seando-adsk self-requested a review October 14, 2020 12:57
@kxl-adsk kxl-adsk merged commit 28cc31d into dev Oct 14, 2020
@kxl-adsk kxl-adsk deleted the tremblp/MAYA-106087/maya_xform_stack_prep branch October 14, 2020 14:27
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 ufe Related to UFE component in Maya ufe-usd Related to UFE-USD plugin in Maya-Usd workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants