Blender Git Commit Log
Git Commits -> Revision 047819e
Revision 047819e by Sybren A. Stüvel (master) November 6, 2020, 13:24 (GMT) |
Cleanup: Alembic, simplify material assignment code Refactor material assignment code such that: - `build_mat_map()` just returns the built map (instead of relying on modifying a map passed as parameter), - `LISTBASE_FOREACH` is used to loop over a `ListBase` (instead of a hand-crafted for-loop), - just `return` when not enough material slots can be created (instead of setting a boolean to false, then doing some useless work, then checking the boolean), - reorder some code for clarity, and - rename `mat_map` to `matname_to_material` so that the semantics are clearer. No functional changes. |
Commit Details:
Full Hash: 047819e72805cdf34e5966453609b664e92a912f
Parent Commit: c32a5ce
Lines Changed: +22, -32
1 Modified Path:
/source/blender/io/alembic/intern/abc_reader_mesh.cc (+22, -32) (Diff)