Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'add_camera_rigs/operators.py')
-rw-r--r--add_camera_rigs/operators.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/add_camera_rigs/operators.py b/add_camera_rigs/operators.py
index 646566ae..18300e08 100644
--- a/add_camera_rigs/operators.py
+++ b/add_camera_rigs/operators.py
@@ -5,7 +5,10 @@ from bpy.types import Operator
def get_rig_and_cam(obj):
- if obj.type == 'ARMATURE':
+ if (obj.type == 'ARMATURE'
+ and "rig_id" in obj
+ and obj["rig_id"].lower() in {"dolly_rig",
+ "crane_rig", "2d_rig"}):
cam = None
for child in obj.children:
if child.type == 'CAMERA':