Editor: Created a constant for fast switching between snap 2.5 and 5
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Sun, 12 Apr 2020 21:41:42 +0000 (23:41 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Sun, 12 Apr 2020 21:41:42 +0000 (23:41 +0200)
plugins/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/Editor.java

index b58c947..55f5805 100644 (file)
@@ -32,6 +32,7 @@ import net.mograsim.logic.model.snippets.symbolrenderers.DefaultSymbolRenderer;
 
 public final class Editor
 {
+       private static final boolean FINE_SNAP = true;
        final Selection selection = new Selection();
        final Set<ComponentInfo> copyBuffer = new HashSet<>();
        public final DeserializedSubmodelComponent toBeEdited;
@@ -41,7 +42,7 @@ public final class Editor
        public final StateManager stateManager;
        private final SaveLoadManager saveManager;
        private Snapping snapping = Snapping.ABSOLUTE;
-       private double snapX = 5, snapY = 5;
+       private double snapX = FINE_SNAP ? 2.5 : 5, snapY = snapX;
        public final DialogManager dialogManager;
        public final EditorUserInput userInput;