mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05: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:
@@ -180,7 +180,7 @@ void GraphEditArranger::arrange_nodes() {
|
||||
|
||||
if (graph_edit->is_snapping_enabled()) {
|
||||
float snapping_distance = graph_edit->get_snapping_distance();
|
||||
pos = pos.snapped(Vector2(snapping_distance, snapping_distance));
|
||||
pos = pos.snappedf(snapping_distance);
|
||||
}
|
||||
graph_node->set_position_offset(pos);
|
||||
graph_node->set_drag(false);
|
||||
|
||||
Reference in New Issue
Block a user