Skip to content

Commit

Permalink
Merge pull request #3129 from dj-mcg/pr/Deprecate_Tf_VS_Bug_Fix_Macro
Browse files Browse the repository at this point in the history
Deprecate use of TF_REFPTR_CONST_VOLATILE_GET
  • Loading branch information
seando-adsk authored May 31, 2023
2 parents 590ee8c + ee6b85c commit 52fd3e8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <pxr/base/tf/pyPtrHelpers.h>
#include <pxr/base/tf/pyResultConversions.h>
#include <pxr/base/tf/refPtr.h>
#include <pxr/pxr.h>

#include <maya/MBoundingBox.h>
#include <maya/MDGModifier.h>
Expand Down Expand Up @@ -378,5 +379,9 @@ void wrapTranslatorBase()
MStatusFromPythonBool::Register();
}

// This macro was removed in USD 23.08. It was only needed to support
// Visual Studio 2015, which USD itself no longer supports.
#if PXR_VERSION < 2308
TF_REFPTR_CONST_VOLATILE_GET(TranslatorBaseWrapper)
TF_REFPTR_CONST_VOLATILE_GET(TranslatorBase)
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <pxr/base/tf/makePyConstructor.h>
#include <pxr/base/tf/pyPtrHelpers.h>
#include <pxr/pxr.h>

#include <maya/MFnDagNode.h>
#include <maya/MFnDependencyNode.h>
Expand Down Expand Up @@ -163,4 +164,8 @@ void wrapTranslatorContext()
.def("insertItem", &_insertItem);
}

// This macro was removed in USD 23.08. It was only needed to support
// Visual Studio 2015, which USD itself no longer supports.
#if PXR_VERSION < 2308
TF_REFPTR_CONST_VOLATILE_GET(TranslatorContext)
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#endif

#include <pxr/base/tf/refPtr.h>
#include <pxr/pxr.h>

#include <maya/MStringArray.h>

Expand Down Expand Up @@ -102,4 +103,8 @@ void wrapLayerManager()
.def("getLayerIdentifiers", PyLayerManager::getLayerIdentifiers);
}

// This macro was removed in USD 23.08. It was only needed to support
// Visual Studio 2015, which USD itself no longer supports.
#if PXR_VERSION < 2308
TF_REFPTR_CONST_VOLATILE_GET(LayerManager)
#endif
5 changes: 5 additions & 0 deletions plugin/al/lib/AL_USDMaya/AL/usdmaya/nodes/wrapProxyShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,11 @@ void wrapProxyShape()
// The best place to put this fix would be in pxr/base/lib/tf/refPtr.h
// where TF_REFPTR_CONST_VOLATILE_GET is defined, but for now we are
// patching it locally.
//
// This macro was removed in USD 23.08. It was only needed to support
// Visual Studio 2015, which USD itself no longer supports.
#if PXR_VERSION < 2308
#if defined(ARCH_COMPILER_MSVC) && ARCH_COMPILER_MSVC_VERSION <= 1910
TF_REFPTR_CONST_VOLATILE_GET(ProxyShape)
#endif
#endif

0 comments on commit 52fd3e8

Please sign in to comment.