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:
authorPeter Kim <pk15950@gmail.com>2022-06-17 11:28:06 +0300
committerPeter Kim <pk15950@gmail.com>2022-06-17 11:28:06 +0300
commitec84e3294593e2e26475f18c81e847bf00dc201e (patch)
treea9c52b070d2ec514e4d5fe434a91709a4b79dfbd /add_camera_rigs/operators.py
parent633e707c40ad94d75a5f0c23ad5f5df0514fc92d (diff)
parentaa353e127c2be0a31e10f8b3621fc418bcf6d6ef (diff)
Merge branch 'master' into xr-dev
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':