diff options
author | makowalski <makowalski@nvidia.com> | 2021-03-05 19:17:34 +0300 |
---|---|---|
committer | makowalski <makowalski@nvidia.com> | 2021-03-05 19:17:34 +0300 |
commit | d3353a44c1393d94653153377113dd4fdcaecbc5 (patch) | |
tree | 3815d36db67a9b901c91cd2c2cfd6bdafb51b05b | |
parent | 945be6aa02da250f8a560102603ba539e2bb753d (diff) |
USD Import: material blend bug.usd-importer-T81257
Fixed bug setting the material blend mode due
to an uninitialized variable.
-rw-r--r-- | source/blender/io/usd/import/usd_material_importer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |