Blender Git Loki

Git Commits -> Revision 008689e

October 31, 2020, 20:45 (GMT)
USD improter: simplify mesh reading.

The original implementation of USDMeshReader::read_mesh()
closely followed AbcMeshReader::read_mesh(), which was
designed to be invoked by a mesh modifier. However,
since the USD importer isn't applying a mesh modifier
yet, this made the code unnecessarily complex. For now
I've refactored this function to simply return a new
mesh, and the additional logic for modifiers can be
restored in the future when it's needed.

Commit Details:

Full Hash: 008689e42dfb07f39e7c82a7f2fa43bb653365e0
Parent Commit: dde0e5c
Lines Changed: +36, -65

4 Modified Paths:

/source/blender/io/usd/import/usd_reader_mesh.cc (+32, -52) (Diff)
/source/blender/io/usd/import/usd_reader_mesh.h (+1, -4) (Diff)
/source/blender/io/usd/import/usd_reader_object.cc (+2, -5) (Diff)
/source/blender/io/usd/import/usd_reader_object.h (+1, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021