Fix Cycles Hydra build issue with USD 22.05
Thanks to Alex Fuller for proposing the solution.
This commit is contained in:
@@ -235,7 +235,11 @@ void HdCyclesMaterial::Sync(HdSceneDelegate *sceneDelegate,
|
||||
}
|
||||
else {
|
||||
networkConverted = std::make_unique<HdMaterialNetwork2>();
|
||||
# if PXR_VERSION >= 2205
|
||||
*networkConverted = HdConvertToHdMaterialNetwork2(networkOld);
|
||||
# else
|
||||
HdMaterialNetwork2ConvertFromHdMaterialNetworkMap(networkOld, networkConverted.get());
|
||||
# endif
|
||||
network = networkConverted.get();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user