Skip to content

Commit

Permalink
Fix initial position of camera so it is not aligned with floor
Browse files Browse the repository at this point in the history
  • Loading branch information
kephale committed Oct 5, 2020
1 parent c5f160b commit 7799f51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/sc/iview/SciView.java
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,6 @@ public void mouseExited(MouseEvent e) {
getWindowWidth(), getWindowHeight(),
sceneryPanel[0]) );

// Enable push rendering by default
getRenderer().setPushMode( true );

getHub().add( SceneryElement.Renderer, getRenderer() );

reset();
Expand Down Expand Up @@ -626,6 +623,12 @@ public void mouseExited(MouseEvent e) {
}
return null;
});

// Enable push rendering by default
getRenderer().setPushMode( true );

sciView.getCamera().setPosition(1.65, 1);

});
}

Expand Down

0 comments on commit 7799f51

Please sign in to comment.