You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
[Core] Add scalar versions of Vector* min/max/clamp/snap(ped)
Convenience for a number of cases operating on single values
This commit is contained in:
@@ -458,7 +458,7 @@ void GenericTilePolygonEditor::_snap_point(Point2 &r_point) {
|
||||
break;
|
||||
|
||||
case SNAP_HALF_PIXEL:
|
||||
r_point = r_point.snapped(Vector2(0.5, 0.5));
|
||||
r_point = r_point.snappedf(0.5);
|
||||
break;
|
||||
|
||||
case SNAP_GRID: {
|
||||
|
||||
Reference in New Issue
Block a user