Fix T76772: Add Camera Rigs - broken constraint default
Caused by a change in the "Track To" constraint defaults. Behavior was relying on the defaults, which changed. Now the axes are explicitly set. Reviewed by: Julian Eisel Differential Revision: https://developer.blender.org/D7744
This commit is contained in:
parent
86e398d59e
commit
93a8e7eaca
Notes:
blender-bot
2023-02-14 18:55:36 +01:00
Referenced by issue #76772, Addon: Add Camera Rigs are broken
|
@ -164,6 +164,8 @@ def setup_3d_rig(rig, cam):
|
|||
con.subtarget = "Camera"
|
||||
|
||||
con = pose_bones['Camera'].constraints.new('TRACK_TO')
|
||||
con.track_axis = 'TRACK_Y'
|
||||
con.up_axis = 'UP_Z'
|
||||
con.target = rig
|
||||
con.subtarget = "Aim"
|
||||
con.use_target_z = True
|
||||
|
|
Loading…
Reference in New Issue