Browse Source

Fix potential GOTCHAs with Circle Camera Centers.

pull/152/head
Adam Johnson 5 years ago
parent
commit
836655ca66
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 11
      korman/properties/prop_camera.py

11
korman/properties/prop_camera.py

@ -228,9 +228,16 @@ class PlasmaCameraProperties(bpy.types.PropertyGroup):
return self.circle_radius_value return self.circle_radius_value
def harvest_actors(self): def harvest_actors(self):
actors = set()
if self.poa_type == "object": if self.poa_type == "object":
return set((self.poa_object.name),) actors.add(self.poa_object.name)
return set()
# Dang! We need to escape out to the object to figure out if this is a circle camera...
data = self.id_data
if isinstance(data, bpy.types.Camera) and data.plasma_camera.camera_type == "circle":
if self.circle_center is not None:
actors.add(self.circle_center.name)
return actors
class PlasmaCamera(bpy.types.PropertyGroup): class PlasmaCamera(bpy.types.PropertyGroup):

Loading…
Cancel
Save