tangent-opensource / blender

Tangent Animation's Blender Fork | More information ->
https://github.com/tangent-devops/tangent-blender/wiki
Other
9 stars 6 forks source link

USD Import: crash on reading no polys #27

Open kowalskima opened 3 years ago

kowalskima commented 3 years ago

To reproduce, select the Global Read Flag option to Vertex only and load a USD containing a mesh.

I've committed this fix to the usd-importer-T81257-merge branch: https://github.com/tangent-opensource/blender/commit/c77832df3bdbf399583c10e1d3b47a17c491cd76

Crash occurs because downstream code expects polys to exist. Modified the mesh import logic to always read verts and polys for new meshes, regardless of the value of the read flag.