File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
chunky/src/java/se/llbit/chunky/ui Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 6666import se .llbit .fxutil .GroupedChangeListener ;
6767import se .llbit .log .Level ;
6868import se .llbit .log .Log ;
69+ import se .llbit .math .QuickMath ;
6970import se .llbit .math .Vector3 ;
7071
7172import java .awt .Desktop ;
@@ -509,7 +510,10 @@ public void createNew3DScene() {
509510
510511 // Load selected chunks.
511512 Collection <ChunkPosition > selection = mapLoader .getChunkSelection ().getSelection ();
512- if (!selection .isEmpty ()) {
513+ if (selection .isEmpty ()) {
514+ chunky .getSceneManager ().getScene ().camera ().setView (0.0 , QuickMath .degToRad (-68.0 ), 0.0 );
515+ chunky .getSceneManager ().getScene ().camera ().setPosition (new Vector3 (0 , 84 , 0 ));
516+ } else {
513517 chunky .getSceneManager ().loadFreshChunks (mapLoader .getWorld (), selection );
514518 }
515519 }
You can’t perform that action at this time.
0 commit comments