Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gbiobob committed Jan 24, 2016
1 parent 20f50fd commit f778457
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/components/galaxy.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var Galaxy = {
img.src = Ed3d.basePath + "textures/heightmap7.jpg";

//-- Add optional infos
if(Ed3d.showGalaxyInfos) this.showGalaxyInfos();
this.showGalaxyInfos();

},

Expand All @@ -69,6 +69,7 @@ var Galaxy = {
'showGalaxyInfos' : function() {

this.infos = new THREE.Object3D();
if(!Ed3d.showGalaxyInfos) return;

$.getJSON(Ed3d.basePath + "data/milkyway.json", function(data) {

Expand Down
2 changes: 2 additions & 0 deletions js/ed3dmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ function enableFarView (scale, withAnim) {

//-- Enable 2D galaxy
Galaxy.milkyway2D.visible = true;
Galaxy.infos.visible = true;


//Galaxy.obj.scale.set(20,20,20);
Expand Down Expand Up @@ -623,6 +624,7 @@ function disableFarView(scale, withAnim) {

//-- Disable 2D galaxy
Galaxy.milkyway2D.visible = false;
Galaxy.infos.visible = false;

//-- Show element
Galaxy.milkyway[0].material.size = 16;
Expand Down
2 changes: 1 addition & 1 deletion js/ed3dmap.min.js

Large diffs are not rendered by default.

0 comments on commit f778457

Please sign in to comment.