Rigify: replace the use of the now removed scene.update()
This commit is contained in:
parent
901868a4b2
commit
dacee3a047
|
@ -67,7 +67,7 @@ def tail_distance(angle,bone_ik,bone_fk):
|
|||
if rot_mod != 'AXIS_ANGLE':
|
||||
bone_ik.rotation_mode = 'AXIS_ANGLE'
|
||||
bone_ik.rotation_axis_angle[0] = angle
|
||||
bpy.context.scene.update()
|
||||
bpy.context.view_layer.update()
|
||||
|
||||
dv = (bone_fk.tail - bone_ik.tail).length
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ def tail_distance(angle,bone_ik,bone_fk):
|
|||
if rot_mod != 'AXIS_ANGLE':
|
||||
bone_ik.rotation_mode = 'AXIS_ANGLE'
|
||||
bone_ik.rotation_axis_angle[0] = angle
|
||||
bpy.context.scene.update()
|
||||
bpy.context.view_layer.update()
|
||||
|
||||
dv = (bone_fk.tail - bone_ik.tail).length
|
||||
|
||||
|
|
Loading…
Reference in New Issue