aboutsummaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorBojidar Marinov2018-03-28 20:52:55 +0300
committerBojidar Marinov2018-03-28 20:56:09 +0300
commit91eb80041d588ef22926422ae2fc39f375e11aec (patch)
tree2035c3e84f7db5734629f87b251cddcddba92614 /scene/resources
parent4b4ed9b72454dea13bd5f0935806519e67f13fbc (diff)
downloadgodot-91eb80041d588ef22926422ae2fc39f375e11aec.tar.gz
godot-91eb80041d588ef22926422ae2fc39f375e11aec.tar.zst
godot-91eb80041d588ef22926422ae2fc39f375e11aec.zip
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/style_box.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp
index 626fda50d..e87fd7baf 100644
--- a/scene/resources/style_box.cpp
+++ b/scene/resources/style_box.cpp
@@ -182,7 +182,7 @@ Size2 StyleBoxTexture::get_center_size() const {
if (texture.is_null())
return Size2();
- return texture->get_size() - get_minimum_size();
+ return region_rect.size - get_minimum_size();
}
void StyleBoxTexture::set_expand_margin_size(Margin p_expand_margin, float p_size) {