[hdGp] Fix typo that was preventing generative procedurals from getting
authormrawde <mrawde@users.noreply.github.com>
Fri, 15 Dec 2023 00:33:17 +0000 (16:33 -0800)
committerpixar-oss <pixar-oss@users.noreply.github.com>
Fri, 15 Dec 2023 00:34:50 +0000 (16:34 -0800)
updated when running asynchronously.

(Internal change: 2308770)

pxr/imaging/hdGp/generativeProceduralResolvingSceneIndex.cpp

index 05caac25ae5db7215bd875e009b240c15007996b..befcdd4952832c8124514cc0a7d08a860664c4f6 100644 (file)
@@ -669,10 +669,10 @@ HdGpGenerativeProceduralResolvingSceneIndex::_UpdateProceduralDependencies(
 
         // give the procedural a chance to become asychronous following an
         // update if we aren't already
-        if (proc && _attemptAsync &&
+        if (procEntry.proc && _attemptAsync &&
                 _activeSyncProcedurals.find(proceduralPrimPath)
                     == _activeSyncProcedurals.end()) {
-            if (proc->AsyncBegin(true)) {
+            if (procEntry.proc->AsyncBegin(true)) {
                 _activeSyncProcedurals[proceduralPrimPath] =
                     TfCreateWeakPtr(&procEntry);
             }