Browse Source

Allow `pre_export()` to return None.

pull/282/head
Adam Johnson 3 years ago
parent
commit
4ad59b161b
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 4
      korman/exporter/convert.py

4
korman/exporter/convert.py

@ -449,7 +449,9 @@ class Exporter:
for mod in bo.plasma_modifiers.modifiers: for mod in bo.plasma_modifiers.modifiers:
proc = getattr(mod, "pre_export", None) proc = getattr(mod, "pre_export", None)
if proc is not None: if proc is not None:
for i in filter(None, proc(self, bo)): result = proc(self, bo)
if result is not None:
for i in filter(None, result):
handle_temporary(i, bo) handle_temporary(i, bo)
for bl_obj in self._objects: for bl_obj in self._objects:

Loading…
Cancel
Save