Browse Source

Fix #149.

pull/152/head
Adam Johnson 5 years ago
parent
commit
5f05052c3f
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 8
      korman/properties/modifiers/region.py

8
korman/properties/modifiers/region.py

@ -114,13 +114,15 @@ class PlasmaCameraRegion(PlasmaModifierProperties):
region.addMessage(msg) region.addMessage(msg)
def harvest_actors(self): def harvest_actors(self):
actors = set()
if self.camera_type == "manual": if self.camera_type == "manual":
if self.camera_object is None: if self.camera_object is None:
raise ExportError("Camera Modifier '{}' does not specify a valid camera object".format(self.id_data.name)) raise ExportError("Camera Modifier '{}' does not specify a valid camera object".format(self.id_data.name))
camera = self.camera_object.data.plasma_camera.settings actors.update(self.camera_object.data.plasma_camera.settings.harvest_actors())
else: else:
camera = self.auto_camera actors.add(self.id_data.name)
return camera.harvest_actors() actors.update(self.auto_camera.harvest_actors())
return actors
class PlasmaFootstepRegion(PlasmaModifierProperties, PlasmaModifierLogicWiz): class PlasmaFootstepRegion(PlasmaModifierProperties, PlasmaModifierLogicWiz):

Loading…
Cancel
Save