Turn Rect2's 'intersects_touch()' into an extra argument of 'intersects()'

(cherry picked from commit 8c8c48a7ad)
This commit is contained in:
Michael Alexsander 2020-02-08 14:43:08 -03:00 committed by Rémi Verschelde
parent 2e152b945f
commit bd2a2a7e40
4 changed files with 27 additions and 26 deletions

View file

@ -168,7 +168,7 @@ void VisualServerCanvas::_render_canvas_item(Item *p_canvas_item, const Transfor
VisualServerRaster::redraw_request();
}
if ((!ci->commands.empty() && p_clip_rect.intersects_touch(global_rect)) || ci->vp_render || ci->copy_back_buffer) {
if ((!ci->commands.empty() && 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);