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

Support for Ufe cameras. #1066

Merged
merged 6 commits into from
Jan 13, 2021
Merged

Conversation

williamkrick
Copy link
Contributor

No description provided.

@williamkrick williamkrick requested a review from ppt-adsk January 12, 2021 18:36
@williamkrick williamkrick added the ufe-usd Related to UFE-USD plugin in Maya-Usd label Jan 12, 2021
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.

Looks good, only a few trivial changes to make.

I'd normally ask for automated tests to be included in the pull request, but in this case I understand that time is of the essence and I will assume that they will follow in a later pull request.

#pragma once

#include <mayaUsd/base/api.h>
#include <mayaUsd/ufe/UsdCamera.h>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this one needed?

namespace MAYAUSD_NS_DEF {
namespace ufe {

//! \brief Interface to create a UsdTransform3d interface object.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy-paste damage in comment.

//! Create a UsdCameraHandler.
static UsdCameraHandler::Ptr create();

// Ufe::Transform3dHandler overrides
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy-paste damage.

UsdCamera& operator=(UsdCamera&&) = delete;

//! Create a UsdCamera.
static UsdCamera::Ptr create();
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 need this and its associated setItem() call? Seems like needless complexity otherwise.

@williamkrick
Copy link
Contributor Author

Logged MAYA-109133 to add automated tests.

@williamkrick williamkrick added the ready-for-merge Development process is finished, PR is ready for merge label Jan 13, 2021
@williamkrick
Copy link
Contributor Author

Everything is protected by UFE version checks, so this one is safe to merge.

@kxl-adsk kxl-adsk merged commit ad1abea into dev Jan 13, 2021
@kxl-adsk kxl-adsk deleted the krickw/MAYA-108121/support_for_ufe_cameras branch January 13, 2021 20:21
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-usd Related to UFE-USD plugin in Maya-Usd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants