[Bf-blender-cvs] [92903ba5b5b] usd-importer-T81257-merge: USD import: fixed Cycles USD preview render.
makowalski
noreply at git.blender.org
Tue May 11 21:37:01 CEST 2021
Commit: 92903ba5b5b57127e2073ae6d9d5beb64ed4e628
Author: makowalski
Date: Tue May 11 15:27:52 2021 -0400
Branches: usd-importer-T81257-merge
https://developer.blender.org/rB92903ba5b5b57127e2073ae6d9d5beb64ed4e628
USD import: fixed Cycles USD preview render.
Added call to update the material nodegraph when importing
USD Preview shaders, to fix issues where materials were
rendering black in Cycles.
===================================================================
M source/blender/io/usd/intern/usd_reader_material.cc
===================================================================
diff --git a/source/blender/io/usd/intern/usd_reader_material.cc b/source/blender/io/usd/intern/usd_reader_material.cc
index 7e8924b9e19..19193f71a67 100644
--- a/source/blender/io/usd/intern/usd_reader_material.cc
+++ b/source/blender/io/usd/intern/usd_reader_material.cc
@@ -330,6 +330,8 @@ void USDMaterialReader::import_usd_preview(Material *mtl,
nodeSetActive(ntree, output);
+ ntreeUpdateTree(bmain_, ntree);
+
/* Optionally, set the material blend mode. */
if (params_.set_material_blend) {
More information about the Bf-blender-cvs
mailing list