summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorZak <zakscomputers@hotmail.com>2019-06-28 11:49:24 +0300
committerTomasz Chabora <kobewi4e@gmail.com>2020-08-29 19:46:52 +0200
commit7d7727badeb22f838e15ef9a87e644e79199fc0b (patch)
tree8877fc4b20ed8632f5a66304cc167b776e2d7af7 /scene/resources
parentf10c3810bb0abfa18b1a579ee927f460bf191b6d (diff)
Adds automatic update for region_rect
When changing the texture region for a StyleBox, the regions was not updating automatically in the Texture editor.
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/style_box.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp
index eb65f10ec9..7328fbdb10 100644
--- a/scene/resources/style_box.cpp
+++ b/scene/resources/style_box.cpp
@@ -245,6 +245,7 @@ void StyleBoxTexture::set_region_rect(const Rect2 &p_region_rect) {
region_rect = p_region_rect;
emit_changed();
+ _change_notify("region");
}
Rect2 StyleBoxTexture::get_region_rect() const {