From aee95174d0d67e60467d13e5281c327d2b4d6816 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Thu, 7 Jun 2018 20:17:01 +0800 Subject: [PATCH] OutputGeometryObject: Workaround issue where OBJ transforms don't get updated When an asset is an OBJ subnet, calling HAPI_CookNode() on the asset doesn't cause a cook on the OBJ nodes in the asset. So the HAPI_NodeInfo.totalCookCount would never be incremented. --- OutputGeometryObject.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OutputGeometryObject.C b/OutputGeometryObject.C index 912fc4aa..7d37707b 100644 --- a/OutputGeometryObject.C +++ b/OutputGeometryObject.C @@ -115,7 +115,10 @@ OutputGeometryObject::compute( } // compute transform - if(myNodeInfo.totalCookCount > myLastCookCount) + // When an asset is an OBJ subnet, calling HAPI_CookNode() on the asset + // doesn't cause a cook on the OBJ nodes in the asset. So the + // HAPI_NodeInfo.totalCookCount would never be incremented. + //if(myNodeInfo.totalCookCount > myLastCookCount) { MDataHandle transformHandle = objectHandle.child(AssetNode::outputObjectTransform); updateTransform(transformHandle);