Browse Source

limited formatting to avoid upsetting codacy

rickard 3 years ago
parent
commit
ec81dd053c

+ 6 - 3
jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/MoveTool.java

@@ -146,11 +146,14 @@ public class MoveTool extends SceneEditTool {
                 position = startPosition.add(diff);
                 position = startPosition.add(diff);
             }
             }
 
 
-            if(toolController.isSnapToScene()){
+            if (toolController.isSnapToScene()){
                 position = snapToScene(position);
                 position = snapToScene(position);
             }
             }
-            if(toolController.isSnapToGrid()){
-                position.set((int) position.x, (int) position.y, (int) position.z);
+            if (toolController.isSnapToGrid()){
+                position.set(
+                        (int) position.x,
+                        (int) position.y,
+                        (int) position.z);
             }
             }
             lastPosition = position;
             lastPosition = position;
             toolController.getSelectedSpatial().setLocalTranslation(position);
             toolController.getSelectedSpatial().setLocalTranslation(position);