Browse Source

Fix #141

pull/152/head
Adam Johnson 6 years ago
parent
commit
01b6d0a907
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 3
      korman/properties/modifiers/logic.py

3
korman/properties/modifiers/logic.py

@ -60,7 +60,7 @@ class PlasmaAdvancedLogic(PlasmaModifierProperties):
our_versions = [globals()[j] for j in i.version]
if version in our_versions:
if i.node_tree is None:
raise ExportError("'{}': Advanced Logic is missing a node tree for '{}'".format(bo.name, i.version))
raise ExportError("'{}': Advanced Logic is missing a node tree for '{}'".format(bo.name, i.name))
# If node_name is defined, then we're only adding a reference. We will make sure that
# the entire node tree is exported once before the post_export step, however.
@ -80,6 +80,7 @@ class PlasmaAdvancedLogic(PlasmaModifierProperties):
def harvest_actors(self):
actors = set()
for i in self.logic_groups:
if i.node_tree is not None:
actors.update(i.node_tree.harvest_actors())
return actors

Loading…
Cancel
Save