-
Notifications
You must be signed in to change notification settings - Fork 202
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
Conversation
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.
LGTM!
#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 |
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.
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.
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.
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.
@@ -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; |
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.
Thanks for fixing this.
…stack.
The changes are mostly minor renames, to conform to upcoming UFE 0.2.25 interfaces.