diff options
author | kobewi <kobewi4e@gmail.com> | 2022-05-08 02:49:20 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-05-08 02:49:20 +0200 |
commit | 8177a8d35809d9ddb80ca2b7ac90336b28c31f30 (patch) | |
tree | 5c0a10fa5d960db2a81664706c75e61d6e82390f /editor/plugins/texture_region_editor_plugin.cpp | |
parent | 563690347a6b9da4882bca15ebd9f3d79f30d3e6 (diff) |
Remove unused code
Diffstat (limited to 'editor/plugins/texture_region_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/texture_region_editor_plugin.cpp | 6 |
1 files changed, 0 insertions, 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<AtlasTexture>(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() { |