Silly _REVERSE_RENDERTYPES_MAPPING replaced with dict comprehension
This commit is contained in:
parent
4970f974fd
commit
329303e256
|
@ -18,19 +18,7 @@ _RENDERTYPES_MAPPING = {
|
||||||
"NORMALMAPPED_TILED_ENVMAPPED_BF2": Rendertype.NORMALMAPPED_TILED_ENVMAP}
|
"NORMALMAPPED_TILED_ENVMAPPED_BF2": Rendertype.NORMALMAPPED_TILED_ENVMAP}
|
||||||
|
|
||||||
|
|
||||||
_REVERSE_RENDERTYPES_MAPPING = {
|
_REVERSE_RENDERTYPES_MAPPING = {val: key for (key, val) in _RENDERTYPES_MAPPING.items()}
|
||||||
Rendertype.NORMAL : "NORMAL_BF2",
|
|
||||||
Rendertype.SCROLLING : "SCROLLING_BF2",
|
|
||||||
Rendertype.ENVMAPPED : "ENVMAPPED_BF2",
|
|
||||||
Rendertype.ANIMATED : "ANIMATED_BF2",
|
|
||||||
Rendertype.REFRACTION : "REFRACTION_BF2",
|
|
||||||
Rendertype.BLINK : "BLINK_BF2",
|
|
||||||
Rendertype.NORMALMAPPED_TILED : "NORMALMAPPED_TILED_BF2",
|
|
||||||
Rendertype.NORMALMAPPED_ENVMAPPED : "NORMALMAPPED_ENVMAPPED_BF2",
|
|
||||||
Rendertype.NORMALMAPPED : "NORMALMAPPED_BF2",
|
|
||||||
Rendertype.NORMALMAPPED_TILED_ENVMAP : "NORMALMAPPED_TILED_ENVMAPPED_BF2"}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def remove_unused_materials(materials: Dict[str, Material],
|
def remove_unused_materials(materials: Dict[str, Material],
|
||||||
|
|
Loading…
Reference in New Issue