Blender Git Commit Log
Git Commits -> Revision f639ffe
November 7, 2020, 10:53 (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: f639ffe795a098f8a7df0376e0998f6c5ded48de
Parent Commit: 326381b
Committed By: Joseph Eagar
Lines Changed: +22, -32
1 Modified Path:
/source/blender/io/alembic/intern/abc_reader_mesh.cc (+22, -32) (Diff)