Fix Add Camera Rigs after 4.0 API changes #104919

Merged
Damien Picard merged 2 commits from WayneDixon/blender-addons:update-add-camera-rigs into blender-v4.0-release 2023-09-27 13:19:06 +02:00
Showing only changes of commit 0a34f26338 - Show all commits

View File

@ -127,11 +127,11 @@ def create_crane_bones(rig):
ctrl.parent = arm ctrl.parent = arm
ctrl_offset.parent = ctrl ctrl_offset.parent = ctrl
ctrl.use_inherit_rotation = False ctrl.use_inherit_rotation = False
ctrl.use_inherit_scale = False ctrl.inherit_scale = "NONE"
ctrl.show_wire = True ctrl.show_wire = True
arm.parent = height arm.parent = height
arm.use_inherit_scale = False arm.inherit_scale = "NONE"
height.parent = root height.parent = root
ctrl_aim.parent = root ctrl_aim.parent = root
@ -486,7 +486,7 @@ def build_camera_rig(context, mode):
context.scene.camera = cam context.scene.camera = cam
# Add the rig object # Add the rig object
rig_name = mode.capitalize() + "_RIG" rig_name = mode.capitalize() + "_Rig"
rig_data = bpy.data.armatures.new(rig_name) rig_data = bpy.data.armatures.new(rig_name)
rig = object_utils.object_data_add(context, rig_data, name=rig_name) rig = object_utils.object_data_add(context, rig_data, name=rig_name)
rig["rig_id"] = "%s" % rig_name rig["rig_id"] = "%s" % rig_name