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) { _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs