USD mesh sequence cache modifier doesn't update material indices #104683

Open
Michael Kowalski wants to merge 1 commits from makowalski/blender:usd-mesh-sequence-mtl-update into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Michael Kowalski ed80735cab USD mesh sequence cache modifier doesn't update material indices.
Fixed issue where the USD mesh reader invoked by the mesh sequence cache modifier does
not update material face sets when reading animating USD meshes with changing topology.

- No longer checking the USD import parameters import_materials option to determine
whether to read the face sets, since that flag is always value-initialized to false
when the USD mesh reader is instantiated for the mesh sequence cache modifier.

- Added a new MOD_MESHSEQ_READ_MAT_FACE_SETS enum for enabling reading material face
sets. This flag is currently only used by the USD mesh reader (since the Alembic mesh
importer always reads material face sets by default).

- Added an "read_mat_face_sets" RNA property definition to the modifier to allow
setting this flag in scripts.
2023-02-12 22:01:12 -05:00