diff options
author | Aras Pranckevicius <aras@nesnausk.org> | 2022-08-29 21:10:16 +0300 |
---|---|---|
committer | Aras Pranckevicius <aras@nesnausk.org> | 2022-08-31 11:18:34 +0300 |
commit | 68f234b8ab2ef4f69498650ece54015d174bea07 (patch) | |
tree | d798c6f68bb1b98201f73e8f049f6456e81a33a2 /source/blender/geometry | |
parent | caa352bc459113e449298ce2ff1505118230e061 (diff) |
Cleanup: obj: simplify import/export syntax handling code
I want to add support for PBR materials extension to OBJ, but the way
current I/O code syntax handling was done made it quite cumbersome
to extend the number of MTL textures/parameters.
Simplify all that by removing FormatHandler template on "syntax"
that gets routed through keyword enums, and instead just have
simple `write_obj_*` and `write_mtl_*` functions.
Simplify MTLMaterial to not contain a map of textures (that is always
fully filled with all possible textures), instead now there's
a simple array. Rename `tex_map_XX` to `MTLTexMap`.
All this does not affect behavior or performance, but it does result
in 170 fewer lines of code, and saves a couple kilobytes of executable
size.
Diffstat (limited to 'source/blender/geometry')
0 files changed, 0 insertions, 0 deletions