fixing details...

dev-2.0
Michael Aschauer 2017-01-24 22:53:08 +01:00
rodzic 5b672e1db2
commit 025779c757
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -70,6 +70,8 @@ IDE_Morph.prototype.rawOpenProjectString = function (str) {
// hide sprite // hide sprite
this.stage.children[0].hide(); this.stage.children[0].hide();
this.stage.clearAll();
this.stage.rotateTurtle(this.stage.children[0].heading);
this.createStatusDisplay(); this.createStatusDisplay();
this.stage.reRender(); this.stage.reRender();
}; };

Wyświetl plik

@ -535,8 +535,8 @@ StageMorph.prototype.initTurtle = function() {
var material = new THREE.MeshBasicMaterial( { color: 0x000000 } ); var material = new THREE.MeshBasicMaterial( { color: 0x000000 } );
geometry.vertices = [ new THREE.Vector3(10, 0, 0.01), geometry.vertices = [ new THREE.Vector3(10, 0, 0.01),
new THREE.Vector3(-8, 8, 0.01), new THREE.Vector3(-8, 8, 0.02),
new THREE.Vector3(-8,-8, 0.01), new THREE.Vector3(-8,-8, 0.02),
]; ];
geometry.faces.push(new THREE.Face3(0, 1, 2)); geometry.faces.push(new THREE.Face3(0, 1, 2));
geometry.verticesNeedUpdate = true; geometry.verticesNeedUpdate = true;