Update: CC - Snake FS - Entity Loaded (21g30t1e75.js) 42 bytes modified

beta.r3js.org
-=yb4f310 2018-03-24 12:47:20 +01:00
parent 23a52db0fe
commit e2eeee8252
1 changed files with 4 additions and 5 deletions

View File

@ -1245,12 +1245,11 @@ GameLib.CustomCode.prototype.restore = function() {
clone.applyToMesh();
clone.mesh = this.createGameMesh(this.materialBreadCorner);
clone.mesh.rotation.z = clone.orientation * Math.PI / 2;
clone.mesh.rotation.z += ((Math.PI / 2) * clone.flip);
clone.mesh.updateInstance('rotation');
clone.applyToMesh();
//clone.mesh.rotation.z = clone.orientation * Math.PI / 2;
//clone.mesh.rotation.z += ((Math.PI / 2) * clone.flip);
//clone.mesh.updateInstance('rotation');
clone.mesh.visible = true;
clone.mesh.updateInstance('visible');
} else {
clone.mesh.visible = true;