diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-16 18:20:14 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-16 18:20:14 +0300 |
commit | dacee3a047b6a7eb8b6cdbb0f4689500e97e6f18 (patch) | |
tree | 7698e051e87a995b7c713ab2b452279444e9a09e /rigify/rig_ui_template.py | |
parent | 901868a4b2fc6e70d9c74119d97c57de132859a3 (diff) |
Rigify: replace the use of the now removed scene.update()
Diffstat (limited to 'rigify/rig_ui_template.py')
-rw-r--r-- | rigify/rig_ui_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |