Skip to content

Commit

Permalink
Merge pull request #3872 from boberfly/fixes/msvc2022fixes
Browse files Browse the repository at this point in the history
MSVC 2022 compiler fixes + minor correction for older Hydra APIs
  • Loading branch information
seando-adsk authored Sep 18, 2024
2 parents 6925a50 + 35839c2 commit a17e33d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/mayaUsd/render/pxrUsdMayaGL/proxyDrawOverride.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ UsdMayaProxyDrawOverride::transform(const MDagPath& objPath, const MDagPath& cam
GfMatrix4d rootXform(transform.matrix);

MayaUsdProxyShapeBase* pShape = MayaUsdProxyShapeBase::GetShapeAtDagPath(objPath);
if (pShape and pShape->usdPrim().GetPath() != SdfPath::AbsoluteRootPath()) {
if (pShape && pShape->usdPrim().GetPath() != SdfPath::AbsoluteRootPath()) {
// If we're not computing the transform of the root of the Usd
// scene, apply the usdPrim transform from within the scene
const UsdTimeCode timeCode = pShape->getTime();
Expand Down
4 changes: 2 additions & 2 deletions lib/usd/hdMaya/adapters/dagAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ void _InstancerNodeDirty(MObject& node, MPlug& plug, void* clientData)

const auto _instancePrimvarDescriptors = HdPrimvarDescriptorVector { {
#if HD_API_VERSION < 56
HdInstancerTokens->instanceTransform
HdInstancerTokens->instanceTransform,
#else
HdInstancerTokens->instanceTransforms,
#endif
HdInterpolationInstance,
HdInterpolationInstance,
HdPrimvarRoleTokens->none } };

} // namespace
Expand Down
2 changes: 1 addition & 1 deletion plugin/pxr/maya/lib/usdMaya/translatorModelAssembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ bool UsdMayaTranslatorModelAssembly::Create(

if (!assemblyEdits.empty()) {
std::vector<std::string> failedEdits;
const bool needsLoadAndUnload = not prim.IsLoaded();
const bool needsLoadAndUnload = !prim.IsLoaded();

// the prim must be loaded in order to apply edits.
if (needsLoadAndUnload) {
Expand Down

0 comments on commit a17e33d

Please sign in to comment.