You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-30 16:26:50 +00:00
Fix AtlasTexture with NinePatchRect and TextureProgress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user