Skip to content

Commit 2fec4ff

Browse files
committed
Use modern GA_Detail::createDetached*Group() API
... instead of the unsafe newDetachedPrimitiveGroup() that will be deprecated in a future Houdini version. Signed-off-by: Edward Lam <[email protected]>
1 parent f6f9bd8 commit 2fec4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvdb_houdini/openvdb_houdini/SOP_OpenVDB_Points_Convert.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ SOP_OpenVDB_Points_Convert::Cache::cookVDBSop(OP_Context& context)
806806

807807
// Unpack any packed primitives
808808

809-
std::unique_ptr<GA_PrimitiveGroup> packgroup(ptGeo->newDetachedPrimitiveGroup());
809+
GA_PrimitiveGroupUPtr packgroup = ptGeo->createDetachedPrimitiveGroup();
810810

811811
for (GA_Iterator it(ptGeo->getPrimitiveRange()); !it.atEnd(); ++it) {
812812
GA_Offset offset = *it;

0 commit comments

Comments
 (0)