Skip to content

Commit 6d238d4

Browse files
committed
Remove tabs.
Set the camera parameter to any camera to support LOPs. Signed-off-by: Jeff Lait <[email protected]>
1 parent 584b2b5 commit 6d238d4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

openvdb_houdini/openvdb_houdini/SOP_OpenVDB_Clip.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ Mask VDB:\n\
114114

115115
parms.add(hutil::ParmFactory(PRM_STRING, "camera", "Camera")
116116
.setTypeExtended(PRM_TYPE_DYNAMIC_PATH)
117+
#if SYS_VERSION_MAJOR_INT >= 21
118+
.setSpareData(&PRM_SpareData::anyCameraPath)
119+
#else
117120
.setSpareData(&PRM_SpareData::objCameraPath)
121+
#endif
118122
.setTooltip("Specify the path to a reference camera")
119123
.setDocumentation(
120124
"The path to the camera whose frustum is to be used as a clipping region"
@@ -442,7 +446,7 @@ SOP_OpenVDB_Clip::Cache::getFrustum(OP_Context& context)
442446
}
443447

444448
#if SYS_VERSION_MAJOR_INT >= 21
445-
UT_Matrix4D cameratosop;
449+
UT_Matrix4D cameratosop;
446450
OBJ_Node *meobj = cookparms()->getNode()
447451
? cookparms()->getNode()->getCreator()->castToOBJNode()
448452
: nullptr;

openvdb_houdini/openvdb_houdini/SOP_OpenVDB_Occlusion_Mask.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ SOP_OpenVDB_Occlusion_Mask::Cache::cookVDBSop(OP_Context& context)
413413

414414
if (cameraPath.isstring()) {
415415
#if SYS_VERSION_MAJOR_INT >= 21
416-
UT_Matrix4D cameratosop;
416+
UT_Matrix4D cameratosop;
417417
OBJ_CameraParms cameraParms;
418418
OBJ_Node *meobj = cookparms()->getNode()
419419
? cookparms()->getNode()->getCreator()->castToOBJNode()

0 commit comments

Comments
 (0)