summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2022-10-21 18:13:45 +0200
committerGitHub <noreply@github.com>2022-10-21 18:13:45 +0200
commitd145c9b1a7a51d99b6009bf78244f8c953caac0f (patch)
tree050e42fd868376541210db815979449aababb961 /scene/resources
parent8ebc8813d5d829532ec30829a3e350c87aea97ff (diff)
parent5de65bb2d7daa6f171e3fd93e6ed24108ecea65f (diff)
Merge pull request #67684 from patchfx/fix-typo-in-draw-rect-region
Fix tp_canvas_item typo in _draw_rect_region
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/texture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp
index 3a2b0ed9cb..fbcf140925 100644
--- a/scene/resources/texture.cpp
+++ b/scene/resources/texture.cpp
@@ -122,7 +122,7 @@ void Texture2D::_bind_methods() {
GDVIRTUAL_BIND(_draw, "to_canvas_item", "pos", "modulate", "transpose")
GDVIRTUAL_BIND(_draw_rect, "to_canvas_item", "rect", "tile", "modulate", "transpose")
- GDVIRTUAL_BIND(_draw_rect_region, "tp_canvas_item", "rect", "src_rect", "modulate", "transpose", "clip_uv");
+ GDVIRTUAL_BIND(_draw_rect_region, "to_canvas_item", "rect", "src_rect", "modulate", "transpose", "clip_uv");
}
Texture2D::Texture2D() {