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:
Demeter Dzadik 2020-05-15 15:04:41 +02:00 committed by Julian Eisel
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
1 changed files with 2 additions and 0 deletions

View File

@ -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