1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

Merge pull request #44521 from madmiraal/rename-rect2-clip

Rename Rect2 and Rect2i clip() to intersection()
This commit is contained in:
Rémi Verschelde
2020-12-19 21:32:14 +01:00
committed by GitHub
17 changed files with 60 additions and 58 deletions

View File

@@ -2705,7 +2705,7 @@ void Node3DEditorViewport::_draw() {
} break;
}
draw_rect = Rect2(Vector2(), s).clip(draw_rect);
draw_rect = Rect2(Vector2(), s).intersection(draw_rect);
surface->draw_rect(draw_rect, Color(0.6, 0.6, 0.1, 0.5), false, Math::round(2 * EDSCALE));