This commit is contained in:
Wojtek Figat
2024-03-17 18:27:59 +01:00
parent 700ed25d3d
commit b847c2d056
3 changed files with 8 additions and 6 deletions

View File

@@ -76,10 +76,10 @@ namespace FlaxEditor.Viewport
public Float2 MouseDelta => _mouseDelta * 1000;
/// <inheritdoc />
public bool UseSnapping => Root.GetKey(KeyboardKeys.Control);
public bool UseSnapping => Root?.GetKey(KeyboardKeys.Control) ?? false;
/// <inheritdoc />
public bool UseDuplicate => Root.GetKey(KeyboardKeys.Shift);
public bool UseDuplicate => Root?.GetKey(KeyboardKeys.Shift) ?? false;
/// <inheritdoc />
public Undo Undo { get; }