diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-04 20:32:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 20:32:20 +0100 |
commit | e89754fa1f5ff3b11dddae399ac2838fd0f1acfe (patch) | |
tree | 39fa2bae93e54d0e3c246216730326241064a995 /servers | |
parent | 398f714dfcb99c229c7ace06c906374a3fd93e3c (diff) | |
parent | 8c8c48a7adb27f1563e8ec7d3c756ce08ffbdf5c (diff) |
Merge pull request #36021 from YeldhamDev/intersects_touch_expose
Turn Rect2's 'intersects_touch()' into an extra argument of 'intersects()'
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/visual_server_canvas.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual/visual_server_canvas.cpp b/servers/visual/visual_server_canvas.cpp index c1833fea44..c192b77988 100644 --- a/servers/visual/visual_server_canvas.cpp +++ b/servers/visual/visual_server_canvas.cpp @@ -183,7 +183,7 @@ void VisualServerCanvas::_cull_canvas_item(Item *p_canvas_item, const Transform2 VisualServerRaster::redraw_request(); } - if ((ci->commands != NULL && p_clip_rect.intersects_touch(global_rect)) || ci->vp_render || ci->copy_back_buffer) { + if ((ci->commands != NULL && p_clip_rect.intersects(global_rect, true)) || ci->vp_render || ci->copy_back_buffer) { //something to draw? ci->final_transform = xform; ci->final_modulate = Color(modulate.r * ci->self_modulate.r, modulate.g * ci->self_modulate.g, modulate.b * ci->self_modulate.b, modulate.a * ci->self_modulate.a); |