Skip to content

Commit

Permalink
closes #209
Browse files Browse the repository at this point in the history
  • Loading branch information
bromagosa committed Jul 9, 2018
1 parent 400b46e commit 5cc67ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions beetleblocks/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,7 @@ StageMorph.prototype.initScene = function () {

sprite.position['set' + axes[axis].realAxis].call(sprite.position, 4.3);
sprite.scale.set(0.3, 0.3, 0.3);
sprite.name = axis;

myself.scene.labels.push(sprite);
myself.scene.add(sprite);
Expand Down Expand Up @@ -1256,7 +1257,9 @@ StageMorph.prototype.initRenderer = function () {
};

this.renderer.toggleParallelProjection = function () {
var label = myself.scene.labels.find( function (label) { return label.name === 'z'; });
this.is2DMode = !this.is2DMode;
if (label) { label.visible = !this.is2DMode; }
myself.initCamera();
};
};
Expand Down
2 changes: 0 additions & 2 deletions objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -6395,8 +6395,6 @@ StageMorph.prototype.setScale = function (number) {
this.scale = number;
this.setExtent(this.dimensions.multiplyBy(number));

console.log('wat');

// now move and resize all children - sprites, bubbles, watchers etc..
this.children.forEach(function (morph) {
relativePos = morph.position().subtract(pos);
Expand Down

0 comments on commit 5cc67ea

Please sign in to comment.