summaryrefslogtreecommitdiff
path: root/editor/plugins/texture_region_editor_plugin.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-05-08 02:49:20 +0200
committerkobewi <kobewi4e@gmail.com>2022-05-08 02:49:20 +0200
commit8177a8d35809d9ddb80ca2b7ac90336b28c31f30 (patch)
tree5c0a10fa5d960db2a81664706c75e61d6e82390f /editor/plugins/texture_region_editor_plugin.cpp
parent563690347a6b9da4882bca15ebd9f3d79f30d3e6 (diff)
Remove unused code
Diffstat (limited to 'editor/plugins/texture_region_editor_plugin.cpp')
-rw-r--r--editor/plugins/texture_region_editor_plugin.cpp6
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() {