Rigify: replace the use of the now removed scene.update()

This commit is contained in:
Alexander Gavrilov 2019-05-16 18:20:14 +03:00
parent 901868a4b2
commit dacee3a047
2 changed files with 2 additions and 2 deletions

View File

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

View File

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