Skip to content

Commit 627e616

Browse files
committed
Ensure output nodes are cooked before fetching data.
1 parent 3c16280 commit 627e616

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

Plugins/HoudiniEngineUnity/Scripts/Core/HEU_HAPIUtility.cs

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,25 +1876,9 @@ static private void GatherAllAssetOutputs(HEU_SessionBase session, HAPI_NodeId n
18761876

18771877
if (info.partCount <= 0) requiresCook = true;
18781878

1879-
// Not sure if this is necessary. TODO: Remove if not needed
1880-
//if (!requiresCook)
1881-
//{
1882-
// // Recook assets with invalid parts
1883-
// int numParts = info.partCount;
1884-
// for (int i = 0; i < numParts; ++i)
1885-
// {
1886-
// HAPI_PartInfo partInfo = new HAPI_PartInfo();
1887-
// if (!session.GetPartInfo(info.nodeId, i, ref partInfo))
1888-
// {
1889-
// continue;
1890-
// }
1891-
// if (partInfo.id < 0 || partInfo.type == HAPI_PartType.HAPI_PARTTYPE_INVALID)
1892-
// {
1893-
// requiresCook = true;
1894-
// break;
1895-
// }
1896-
// }
1897-
//}
1879+
// #Bug:137052. info.hasGeoChanged can be false when this is called as the info has already been
1880+
// read elsewhere. So without a big architecture change, we need to cook the node here too.
1881+
requiresCook = true;
18981882

18991883
if (requiresCook)
19001884
{

0 commit comments

Comments
 (0)