diff options
author | kobewi <kobewi4e@gmail.com> | 2023-01-26 00:44:29 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2023-01-26 23:02:26 +0100 |
commit | b5fda06f203e8f713a9cbe0d50df78cf84bc4ada (patch) | |
tree | 0f97504a4bf7df21e258b52241193dbc9b69d5e7 /scene/resources | |
parent | 63b5adf8a85f6f2f222d048bd4975490b6afd9a8 (diff) |
Don't change region_rect when setting texture
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/style_box.cpp | 5 |
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(); } |