Fix Add Camera Rigs after 4.0 API changes #104919
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user