diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-30 14:47:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 14:47:41 +0200 |
commit | ae349d82277e85ca348fd3da2ff4ad7c7033c8e6 (patch) | |
tree | 40f97716ca0c62026d859357ed2e58b3bec46d17 /editor/plugins/texture_layered_editor_plugin.cpp | |
parent | 733d04f72780eb474f6b52add57a635bba34530f (diff) | |
parent | e31bb5ffeb279f704cff1963c2650df7ad3ecdd6 (diff) |
Merge pull request #64377 from Mickeon/rename-canvas-redraw
Rename `CanvasItem.update()` to `queue_redraw()`
Diffstat (limited to 'editor/plugins/texture_layered_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/texture_layered_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/plugins/texture_layered_editor_plugin.cpp b/editor/plugins/texture_layered_editor_plugin.cpp index 2c6f70463d..1118f18605 100644 --- a/editor/plugins/texture_layered_editor_plugin.cpp +++ b/editor/plugins/texture_layered_editor_plugin.cpp @@ -64,7 +64,7 @@ void TextureLayeredEditor::_texture_changed() { if (!is_visible()) { return; } - update(); + queue_redraw(); } void TextureLayeredEditor::_update_material() { @@ -190,7 +190,7 @@ void TextureLayeredEditor::edit(Ref<TextureLayered> p_texture) { } texture->connect("changed", callable_mp(this, &TextureLayeredEditor::_texture_changed)); - update(); + queue_redraw(); texture_rect->set_material(materials[texture->get_layered_type()]); setting = true; if (texture->get_layered_type() == TextureLayered::LAYERED_TYPE_2D_ARRAY) { |