Skip to content
Snippets Groups Projects
Commit 4bd127c5 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

part rendering without scale

parent 7bcb4537
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ var partMaterial = new THREE.MeshLambertMaterial({ color:0xffffff, shading: THRE
this.mesh = this._makeMeshForType(this.type);
var rotation = this.parentCell.getEulerRotation();
this.mesh.rotation.set(rotation.x, rotation.y, rotation.z);
this.updateForScale(this.parentCell.getScale(), this.parentCell.getPosition());
this._setMeshPosition(this.parentCell.getPosition());
globals.three.sceneAdd(this.mesh, "part");
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment