Disable spline node snapping when using viewport movement

This commit is contained in:
Wojtek Figat
2025-04-07 18:20:02 +02:00
parent 210c8e8fe4
commit 60c5fbeba3

View File

@@ -322,7 +322,7 @@ namespace FlaxEditor.SceneGraph.Actors
var mouse = Input.Mouse;
var keyboard = Input.Keyboard;
if (keyboard.GetKey(KeyboardKeys.Shift))
if (keyboard.GetKey(KeyboardKeys.Shift) && !mouse.GetButton(MouseButton.Right))
EditSplineWithSnap(selectedPoint);
var canAddSplinePoint = mouse.PositionDelta == Float2.Zero && mouse.Position != Float2.Zero;