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/legacy | |
parent | 901868a4b2fc6e70d9c74119d97c57de132859a3 (diff) |
Rigify: replace the use of the now removed scene.update()
Diffstat (limited to 'rigify/legacy')
-rw-r--r-- | rigify/legacy/rig_ui_pitchipoy_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rigify/legacy/rig_ui_pitchipoy_template.py b/rigify/legacy/rig_ui_pitchipoy_template.py index 4f71de06..2e64b743 100644 --- a/rigify/legacy/rig_ui_pitchipoy_template.py +++ b/rigify/legacy/rig_ui_pitchipoy_template.py @@ -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 |