[Bf-blender-cvs] [b16b847882d] usd-importer-T81257-merge: USD import: orientation bug.
makowalski
noreply at git.blender.org
Mon Feb 8 22:21:44 CET 2021
Commit: b16b847882d24df11fa88cc47441f240640daba0
Author: makowalski
Date: Mon Feb 8 15:29:45 2021 -0500
Branches: usd-importer-T81257-merge
https://developer.blender.org/rBb16b847882d24df11fa88cc47441f240640daba0
USD import: orientation bug.
Uninitialized USDMeshReader::m_isLeftHanded flag was
causing the vertex winding orientation to randomly flip,
causing incorrect shading and other issues.
===================================================================
M source/blender/io/usd/intern/usd_reader_mesh.cc
===================================================================
diff --git a/source/blender/io/usd/intern/usd_reader_mesh.cc b/source/blender/io/usd/intern/usd_reader_mesh.cc
index 0bc21145e5b..e48ce812a2e 100644
--- a/source/blender/io/usd/intern/usd_reader_mesh.cc
+++ b/source/blender/io/usd/intern/usd_reader_mesh.cc
@@ -162,6 +162,7 @@ USDMeshReader::USDMeshReader(pxr::UsdStageRefPtr stage,
const USDImportParams &import_params,
ImportSettings &settings)
: USDGeomReader(stage, object, import_params, settings),
+ m_isLeftHanded(false),
m_lastNumPositions(-1),
m_hasUVs(false),
m_isTimeVarying(false),
More information about the Bf-blender-cvs
mailing list