scale update instance
parent
b849a949e6
commit
a14ca1e7ab
|
@ -1248,6 +1248,23 @@ GameLib.D3.Mesh.prototype.updateInstancePosition = function() {
|
|||
}
|
||||
};
|
||||
|
||||
GameLib.D3.Mesh.prototype.updateInstanceScale = function() {
|
||||
|
||||
this.scale.instance.set(
|
||||
this.scale.x,
|
||||
this.scale.y,
|
||||
this.scale.z
|
||||
);
|
||||
|
||||
this.instance.scale.copy(this.scale.instance);
|
||||
|
||||
if (this.helper) {
|
||||
this.removeHelper();
|
||||
this.createHelper();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets all children components of this Mesh (all linked objects only - no object references i.e. string ids)
|
||||
|
|
Loading…
Reference in New Issue