Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakowalski <makowalski@nvidia.com>2021-03-05 19:17:34 +0300
committermakowalski <makowalski@nvidia.com>2021-03-05 19:17:34 +0300
commitd3353a44c1393d94653153377113dd4fdcaecbc5 (patch)
tree3815d36db67a9b901c91cd2c2cfd6bdafb51b05b
parent945be6aa02da250f8a560102603ba539e2bb753d (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.cc2
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)) {