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. 6
      korman/exporter/convert.py

6
korman/exporter/convert.py

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

Loading…
Cancel
Save