From 836655ca66e3e18d34907cc78aa11166ebd609b2 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sun, 20 Oct 2019 18:02:05 -0400 Subject: [PATCH] Fix potential GOTCHAs with Circle Camera Centers. --- korman/properties/prop_camera.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/korman/properties/prop_camera.py b/korman/properties/prop_camera.py index cb80608..d09bbec 100644 --- a/korman/properties/prop_camera.py +++ b/korman/properties/prop_camera.py @@ -228,9 +228,16 @@ class PlasmaCameraProperties(bpy.types.PropertyGroup): return self.circle_radius_value def harvest_actors(self): + actors = set() if self.poa_type == "object": - return set((self.poa_object.name),) - return set() + actors.add(self.poa_object.name) + + # 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):