Skip to content

Commit

Permalink
Merge pull request #1214 from Autodesk/tremblp/MAYA-110153/fix_pxr_na…
Browse files Browse the repository at this point in the history
…mespace_00

Tremblp/maya 110153/fix pxr namespace 00
  • Loading branch information
Krystian Ligenza authored Feb 26, 2021
2 parents 02fdccd + 84d3bc2 commit b656585
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 38 deletions.
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdTransform3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <ufe/path.h>
#include <ufe/transform3d.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdTransform3dBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <ufe/transform3d.h>
#include <ufe/transform3dHandler.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdTransform3dCommonAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include <pxr/usd/usdGeom/xformCommonAPI.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdTransform3dFallbackMayaXformStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#include <mayaUsd/ufe/UfeVersionCompat.h>
#include <mayaUsd/ufe/UsdTransform3dMayaXformStack.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdTransform3dMatrixOp.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include <pxr/usd/usdGeom/xformOp.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdTransform3dMayaXformStack.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include <map>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdTransform3dSetObjectMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include <pxr/base/gf/matrix4d.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdUndoAddNewPrimCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <ufe/path.h>
#include <ufe/undoableCommand.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdUndoCreateGroupCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include <ufe/selection.h>
#include <ufe/undoableCommand.h>

// PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdUndoDeleteCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

#include <ufe/undoableCommand.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdUndoDuplicateCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include <ufe/path.h>
#include <ufe/undoableCommand.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdUndoInsertChildCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include <ufe/hierarchy.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
2 changes: 0 additions & 2 deletions lib/mayaUsd/ufe/UsdUndoRenameCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include <ufe/pathComponent.h>
#include <ufe/undoableCommand.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand Down
14 changes: 7 additions & 7 deletions lib/mayaUsd/ufe/UsdUndoReorderCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include <ufe/undoableCommand.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand All @@ -33,7 +31,9 @@ class MAYAUSD_CORE_PUBLIC UsdUndoReorderCommand : public Ufe::UndoableCommand
public:
typedef std::shared_ptr<UsdUndoReorderCommand> Ptr;

UsdUndoReorderCommand(const UsdPrim& parentPrim, const std::vector<TfToken>& orderedTokens);
UsdUndoReorderCommand(
const PXR_NS::UsdPrim& parentPrim,
const std::vector<PXR_NS::TfToken>& orderedTokens);
~UsdUndoReorderCommand() override;

// Delete the copy/move constructors assignment operators.
Expand All @@ -44,16 +44,16 @@ class MAYAUSD_CORE_PUBLIC UsdUndoReorderCommand : public Ufe::UndoableCommand

//! Create a UsdUndoReorderCommand
static UsdUndoReorderCommand::Ptr
create(const UsdPrim& parentPrim, const std::vector<TfToken>& orderedTokens);
create(const PXR_NS::UsdPrim& parentPrim, const std::vector<PXR_NS::TfToken>& orderedTokens);

private:
void execute() override;
void undo() override;
void redo() override;

UsdPrim _parentPrim;
std::vector<TfToken> _orderedTokens;
UsdUndoableItem _undoableItem;
PXR_NS::UsdPrim _parentPrim;
std::vector<PXR_NS::TfToken> _orderedTokens;
UsdUndoableItem _undoableItem;

}; // UsdUndoReorderCommand

Expand Down
8 changes: 3 additions & 5 deletions lib/mayaUsd/ufe/UsdUndoVisibleCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include <ufe/undoableCommand.h>

PXR_NAMESPACE_USING_DIRECTIVE

namespace MAYAUSD_NS_DEF {
namespace ufe {

Expand All @@ -33,7 +31,7 @@ class MAYAUSD_CORE_PUBLIC UsdUndoVisibleCommand : public Ufe::UndoableCommand
public:
typedef std::shared_ptr<UsdUndoVisibleCommand> Ptr;

UsdUndoVisibleCommand(const UsdPrim& prim, bool vis);
UsdUndoVisibleCommand(const PXR_NS::UsdPrim& prim, bool vis);
~UsdUndoVisibleCommand() override;

// Delete the copy/move constructors assignment operators.
Expand All @@ -43,14 +41,14 @@ class MAYAUSD_CORE_PUBLIC UsdUndoVisibleCommand : public Ufe::UndoableCommand
UsdUndoVisibleCommand& operator=(UsdUndoVisibleCommand&&) = delete;

//! Create a UsdUndoVisibleCommand object
static UsdUndoVisibleCommand::Ptr create(const UsdPrim& prim, bool vis);
static UsdUndoVisibleCommand::Ptr create(const PXR_NS::UsdPrim& prim, bool vis);

private:
void execute() override;
void undo() override;
void redo() override;

UsdPrim _prim;
PXR_NS::UsdPrim _prim;

bool _visible;

Expand Down

0 comments on commit b656585

Please sign in to comment.