Skip to content

Commit

Permalink
Matching to Houdini build 18.5.42.
Browse files Browse the repository at this point in the history
  • Loading branch information
SideFX authored and Prisms User committed Nov 27, 2019
1 parent fa27190 commit 988f764
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/houdini/lib/H_USD/HUSD/HUSD_OutputProcessor.C
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,13 @@ husd_RegistryHolder::husd_RegistryHolder()
myRegistry.registerOutputProcessor(basename, processor);
}
}
UT_Exit::addExitCallback(clearRegistryCallback, this);

// Register a callback to clean up the registry at exit time.
// Note that registry cleanup can involve executing Python code
// so we want the callback to run at Python exit time.
std::function<void(void)> clear_registry_func =
std::bind(&husd_RegistryHolder::clearRegistryCallback, this);
PYregisterAtExitCallback(clear_registry_func);
}

void
Expand Down
7 changes: 6 additions & 1 deletion src/houdini/lib/H_USD/gusd/agentUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,12 @@ Gusd_CreateCaptureAttributes(
}

for (int c = 0; c < tupleSize; ++c) {
indexPair->setIndex(captureAttr, o, c, indices[c]);
// Unused influences have both an index and weight
// of 0. Convert this back to an invalid index for
// the capture attribute.
indexPair->setIndex(
captureAttr, o, c,
(weights[c] == 0.0) ? -1 : indices[c]);
indexPair->setData(captureAttr, o, c, weights[c]);
}
}
Expand Down

0 comments on commit 988f764

Please sign in to comment.