@@ -164,7 +164,7 @@ private ActionListener getActionListener() {
164164 */
165165 private void processClick (final boolean isPressed ) {
166166
167- if (!isPressed ) {
167+ if (!isPressed ) {
168168 return ;
169169 }
170170
@@ -186,14 +186,14 @@ private void processClick(final boolean isPressed) {
186186
187187 final ModelFileEditor editor = getEditor ();
188188
189- if (results .size () < 1 ) {
189+ if (results .size () < 1 ) {
190190 EXECUTOR_MANAGER .addFXTask (() -> editor .notifySelected (null ));
191191 return ;
192192 }
193193
194194 final CollisionResult collision = results .getClosestCollision ();
195195
196- if (collision == null ) {
196+ if (collision == null ) {
197197 EXECUTOR_MANAGER .addFXTask (() -> editor .notifySelected (null ));
198198 return ;
199199 }
@@ -347,7 +347,7 @@ public void initialize(final AppStateManager stateManager, final Application app
347347
348348 final InputManager inputManager = EDITOR .getInputManager ();
349349
350- if (!inputManager .hasMapping (mappingName )) {
350+ if (!inputManager .hasMapping (mappingName )) {
351351 inputManager .addMapping (mappingName , new MouseButtonTrigger (MouseInput .BUTTON_LEFT ));
352352 }
353353
@@ -377,7 +377,7 @@ public void update(float tpf) {
377377 final Spatial selected = getSelected ();
378378 final Spatial selectionShape = getSelectionShape ();
379379
380- if (selected != null && selectionShape != null ) {
380+ if (selected != null && selectionShape != null ) {
381381 selectionShape .setLocalTranslation (selected .getWorldTranslation ());
382382 selectionShape .setLocalRotation (selected .getWorldRotation ());
383383 selectionShape .setLocalScale (selected .getWorldScale ());
@@ -444,11 +444,11 @@ private void changeFastSkyImpl(Spatial fastSky) {
444444 final Node stateNode = getStateNode ();
445445 final Spatial currentFastSky = getCurrentFastSky ();
446446
447- if (currentFastSky != null ) {
447+ if (currentFastSky != null ) {
448448 stateNode .detachChild (currentFastSky );
449449 }
450450
451- if (fastSky == null ) {
451+ if (fastSky == null ) {
452452 return ;
453453 }
454454
@@ -508,24 +508,24 @@ public void updateSelection(final Spatial spatial) {
508508 */
509509 private void updateSelectionImpl (final Spatial spatial ) {
510510
511- if (getSelected () == spatial ) {
511+ if (getSelected () == spatial ) {
512512 return ;
513513 }
514514
515515 final Node toolNode = getToolNode ();
516516 final Spatial selectionShape = getSelectionShape ();
517517
518- if (spatial == null && selectionShape != null ) {
518+ if (spatial == null && selectionShape != null ) {
519519 toolNode .detachChild (selectionShape );
520520 setSelectionShape (null );
521521 setSelected (null );
522522 return ;
523- } else if (spatial == null ) {
523+ } else if (spatial == null ) {
524524 setSelected (null );
525525 return ;
526526 }
527527
528- if (selectionShape != null ) {
528+ if (selectionShape != null ) {
529529 toolNode .detachChild (selectionShape );
530530 }
531531
@@ -539,13 +539,13 @@ private void updateSelectionImpl(final Spatial spatial) {
539539 shape = buildBoxSelection (spatial );
540540 }
541541
542- if (shape == null ) {
542+ if (shape == null ) {
543543 setSelectionShape (null );
544544 setSelected (null );
545545 return ;
546546 }
547547
548- if (isShowSelection ()) {
548+ if (isShowSelection ()) {
549549 toolNode .attachChild (shape );
550550 }
551551
@@ -575,7 +575,7 @@ private Spatial buildBoxSelection(final Spatial spatial) {
575575
576576 return geometry ;
577577
578- } else if (bound instanceof BoundingSphere ) {
578+ } else if (bound instanceof BoundingSphere ) {
579579
580580 final BoundingSphere boundingSphere = (BoundingSphere ) bound ;
581581
@@ -653,16 +653,16 @@ public void updateShowSelection(final boolean showSelection) {
653653 */
654654 private void updateShowSelectionImpl (boolean showSelection ) {
655655
656- if (isShowSelection () == showSelection ) {
656+ if (isShowSelection () == showSelection ) {
657657 return ;
658658 }
659659
660660 final Spatial selectionShape = getSelectionShape ();
661661 final Node toolNode = getToolNode ();
662662
663- if (showSelection && selectionShape != null ) {
663+ if (showSelection && selectionShape != null ) {
664664 toolNode .attachChild (selectionShape );
665- } else if (!showSelection && selectionShape != null ) {
665+ } else if (!showSelection && selectionShape != null ) {
666666 toolNode .detachChild (selectionShape );
667667 }
668668
@@ -681,14 +681,14 @@ public void updateShowGrid(final boolean showGrid) {
681681 */
682682 private void updateShowGridImpl (final boolean showGrid ) {
683683
684- if (isShowGrid () == showGrid ) {
684+ if (isShowGrid () == showGrid ) {
685685 return ;
686686 }
687687
688688 final Node toolNode = getToolNode ();
689689 final Geometry grid = getGrid ();
690690
691- if (showGrid ) {
691+ if (showGrid ) {
692692 toolNode .attachChild (grid );
693693 } else {
694694 toolNode .detachChild (grid );
0 commit comments