Skip to content

Commit

Permalink
HYDRA-307 : Fix an issue with multiple nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
lanierd-adsk committed Feb 20, 2024
1 parent 8a118f0 commit 05325f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class MhFootPrint : public MPxLocatorNode
void _UpdateThisMObject();

///Counter to make the hydra primitives unique
std::atomic_int _counter { 0 };
static std::atomic_int _counter;

/// Sole path to be used in the retained hydra scene index for the sole primitive
SdfPath _solePath;
Expand Down Expand Up @@ -350,6 +350,7 @@ namespace
}//end of anonymous namespace

//Static variables init
std::atomic_int MhFootPrint::_counter {0};
MObject MhFootPrint::mSize;
MObject MhFootPrint::mColor;
MTypeId MhFootPrint::id( 0x00080101 );
Expand Down
2 changes: 1 addition & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testFootPrintNode.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def imageDiffFailThreshold(self):

@property
def imageDiffFailPercent(self):
return 0.2
return 0.1

def setupScene(self):
testFile = mayaUtils.openTestScene( #Is an empty scene that is used to zoom in more on the foot print nodes, it also has Storm already set as the renderer
Expand Down

0 comments on commit 05325f7

Please sign in to comment.