From dacee3a047b6a7eb8b6cdbb0f4689500e97e6f18 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 16 May 2019 18:20:14 +0300 Subject: Rigify: replace the use of the now removed scene.update() --- rigify/rig_ui_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rigify/rig_ui_template.py') diff --git a/rigify/rig_ui_template.py b/rigify/rig_ui_template.py index e2070857..6cd46f6a 100644 --- a/rigify/rig_ui_template.py +++ b/rigify/rig_ui_template.py @@ -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 -- cgit v1.2.3