diff options
author | Micky <micheledevita2@gmail.com> | 2022-08-13 23:21:24 +0200 |
---|---|---|
committer | Micky <micheledevita2@gmail.com> | 2022-08-29 14:59:47 +0200 |
commit | e31bb5ffeb279f704cff1963c2650df7ad3ecdd6 (patch) | |
tree | d116cb0fea6dae856d338b63ab310024b5fc479a /scene/resources | |
parent | e60086f98b07365d6174677df84c9a22bfb56d15 (diff) |
Rename `CanvasItem.update()` to `queue_redraw()`
Affects a lot of classes. Very thoroughly checked signal connections and deferred calls to this method, add_do_method/add_undo_method calls, and so on.
Also renames the internal `_update_callback()` to `_redraw_callback()` for consistency.
Just a few comments have also been changed to say "redraw".
In CPUParticles2D, there was a private variable with the same name. It has been renamed to `do_redraw`.
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/skeleton_modification_stack_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/skeleton_modification_stack_2d.cpp b/scene/resources/skeleton_modification_stack_2d.cpp index 38ec19828f..068c756849 100644 --- a/scene/resources/skeleton_modification_stack_2d.cpp +++ b/scene/resources/skeleton_modification_stack_2d.cpp @@ -138,7 +138,7 @@ void SkeletonModificationStack2D::set_editor_gizmos_dirty(bool p_dirty) { if (!editor_gizmo_dirty && p_dirty) { editor_gizmo_dirty = p_dirty; if (skeleton) { - skeleton->update(); + skeleton->queue_redraw(); } } else { editor_gizmo_dirty = p_dirty; |