diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-11-06 15:09:08 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-11-06 16:24:50 +0300 |
commit | 047819e72805cdf34e5966453609b664e92a912f (patch) | |
tree | b74555d1e3a44783fac56734b40228b80adb9ce5 /source/blender/sequencer | |
parent | c32a5ce17c7609c29c832a2d229c60e12d0ccbb5 (diff) |
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.
Diffstat (limited to 'source/blender/sequencer')
0 files changed, 0 insertions, 0 deletions