[Bf-blender-cvs] [d3353a44c13] usd-importer-T81257: USD Import: material blend bug.
makowalski
noreply at git.blender.org
Fri Mar 5 17:24:07 CET 2021
Commit: d3353a44c1393d94653153377113dd4fdcaecbc5
Author: makowalski
Date: Fri Mar 5 11:17:34 2021 -0500
Branches: usd-importer-T81257
https://developer.blender.org/rBd3353a44c1393d94653153377113dd4fdcaecbc5
USD Import: material blend bug.
Fixed bug setting the material blend mode due
to an uninitialized variable.
===================================================================
M source/blender/io/usd/import/usd_material_importer.cc
===================================================================
diff --git a/source/blender/io/usd/import/usd_material_importer.cc b/source/blender/io/usd/import/usd_material_importer.cc
index 11978db442e..8293c1c651c 100644
--- a/source/blender/io/usd/import/usd_material_importer.cc
+++ b/source/blender/io/usd/import/usd_material_importer.cc
@@ -134,7 +134,7 @@ static bool needs_blend(const pxr::UsdShadeShader &usd_shader, float &r_opacity_
return false;
}
- bool needs_blend;
+ bool needs_blend = false;
if (pxr::UsdShadeInput opacity_input = usd_shader.GetInput(usdtokens::opacity)) {
More information about the Bf-blender-cvs
mailing list