|
@@ -59,8 +59,15 @@ export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGrid
|
|
|
|
|
|
var wireframeOver = mesh.clone();
|
|
var wireframeOver = mesh.clone();
|
|
wireframeOver.reservedDataStore = { hidden: true };
|
|
wireframeOver.reservedDataStore = { hidden: true };
|
|
|
|
+
|
|
|
|
+ // Sets up the mesh to be attached to the parent.
|
|
|
|
+ // So all neutral in local space.
|
|
|
|
+ wireframeOver.parent = mesh;
|
|
wireframeOver.position = Vector3.Zero();
|
|
wireframeOver.position = Vector3.Zero();
|
|
- wireframeOver.setParent(mesh);
|
|
|
|
|
|
+ wireframeOver.scaling = new Vector3(1, 1, 1);
|
|
|
|
+ wireframeOver.rotation = Vector3.Zero();
|
|
|
|
+ wireframeOver.rotationQuaternion = null;
|
|
|
|
+
|
|
var material = new StandardMaterial("wireframeOver", scene);
|
|
var material = new StandardMaterial("wireframeOver", scene);
|
|
material.reservedDataStore = { hidden: true };
|
|
material.reservedDataStore = { hidden: true };
|
|
wireframeOver.material = material;
|
|
wireframeOver.material = material;
|