From 8177a8d35809d9ddb80ca2b7ac90336b28c31f30 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sun, 8 May 2022 02:49:20 +0200 Subject: Remove unused code --- editor/plugins/texture_region_editor_plugin.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 455592aa26..74c96e19d0 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -921,12 +921,6 @@ void TextureRegionEditor::edit(Object *p_obj) { atlas_tex = Ref(nullptr); } edit_draw->update(); - if ((node_sprite_2d && !node_sprite_2d->is_region_enabled()) || (node_sprite_3d && !node_sprite_3d->is_region_enabled())) { - set_process(true); - } - if (!p_obj) { - set_process(false); - } } void TextureRegionEditor::_texture_changed() { -- cgit v1.2.3