diff options
author | pesets <i.am.pesets@gmail.com> | 2018-08-18 22:37:50 +0700 |
---|---|---|
committer | pesets <i.am.pesets@gmail.com> | 2018-08-18 23:06:38 +0700 |
commit | 15af0e9ec841be7afdc2f48c0eefd6f3a8741363 (patch) | |
tree | c621ed85cd6d079cf851c1a26a7439f444bdbdf0 /scene/gui | |
parent | c93888ae71bcc2b633f335b407c75412a493012d (diff) |
Fix AtlasTexture with NinePatchRect and TextureProgress
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/texture_progress.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/texture_progress.cpp b/scene/gui/texture_progress.cpp index 6e4fe88dbf..ff90576c1b 100644 --- a/scene/gui/texture_progress.cpp +++ b/scene/gui/texture_progress.cpp @@ -266,6 +266,8 @@ void TextureProgress::draw_nine_patch_stretched(const Ref<Texture> &p_texture, F } } + p_texture->get_rect_region(dst_rect, src_rect, dst_rect, src_rect); + RID ci = get_canvas_item(); VS::get_singleton()->canvas_item_add_nine_patch(ci, dst_rect, src_rect, p_texture->get_rid(), topleft, bottomright, VS::NINE_PATCH_STRETCH, VS::NINE_PATCH_STRETCH, true, p_modulate); } |