diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java b/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java index 8a14996c0..5305c95a0 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/controller/toolbars/CameraToolbar.java @@ -177,7 +177,7 @@ public class CameraToolbar extends javax.swing.JToolBar { }// //GEN-END:initComponents private void viewButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewButtonActionPerformed - viewMenu.show(viewButton, 0,- viewMenu.getHeight()); + viewMenu.show(viewButton, 0, -viewMenu.getHeight()); }//GEN-LAST:event_viewButtonActionPerformed private void frontMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_frontMenuItemActionPerformed @@ -248,7 +248,15 @@ private void bottomMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GE }//GEN-LAST:event_bottomMenuItemActionPerformed private void enableOrthoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_enableOrthoActionPerformed - toggleOrthoPerspAction.actionPerformed(evt); + SceneViewerTopComponent.findInstance().requestActive(); + final java.awt.event.ActionEvent e = evt; + java.awt.EventQueue.invokeLater(new Runnable() { + + public void run() { + toggleOrthoPerspAction.actionPerformed(e); + } + }); + }//GEN-LAST:event_enableOrthoActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JMenuItem backMenuItem;