summaryrefslogtreecommitdiff
path: root/scene/resources/style_box.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-26 23:52:19 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-26 23:52:19 +0100
commit3b086aa062068f4d866b2207bb5b5770e40aafac (patch)
tree7e4a3593b6b47e07772a5586af015e9ce5c8cd32 /scene/resources/style_box.cpp
parentcf8fc5c9a472a519d0cabee349fca10b22df769c (diff)
parentb5fda06f203e8f713a9cbe0d50df78cf84bc4ada (diff)
Merge pull request #72086 from KoBeWi/set_rekt
Don't change region_rect when setting texture
Diffstat (limited to 'scene/resources/style_box.cpp')
-rw-r--r--scene/resources/style_box.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp
index 0beb62185d..fbbe98d022 100644
--- a/scene/resources/style_box.cpp
+++ b/scene/resources/style_box.cpp
@@ -151,11 +151,6 @@ void StyleBoxTexture::set_texture(Ref<Texture2D> p_texture) {
return;
}
texture = p_texture;
- if (p_texture.is_null()) {
- region_rect = Rect2(0, 0, 0, 0);
- } else {
- region_rect = Rect2(Point2(), texture->get_size());
- }
emit_changed();
}