mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
implemented rubedoll direction flip and added meshIndex (z) swapping capability. #151
This commit is contained in:
parent
da7e0758bb
commit
fb3ac40d17
12 changed files with 483 additions and 389 deletions
|
|
@ -20,7 +20,8 @@ function (Nc, Exception, Layer) {
|
|||
Nc.on(Nc.ns.client.view.mesh.remove, this.removeMesh, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.update, this.updateMesh, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.addFilter, this.addFilter, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.removeFilter, this.removeFilter, this)
|
||||
Nc.on(Nc.ns.client.view.mesh.removeFilter, this.removeFilter, this),
|
||||
Nc.on(Nc.ns.client.view.mesh.swapMeshIndexes, this.swapMeshIndexes, this)
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -157,6 +158,11 @@ function (Nc, Exception, Layer) {
|
|||
this.delegate.apply(this, arguments);
|
||||
};
|
||||
|
||||
LayerManager.prototype.swapMeshIndexes = function() {
|
||||
Array.prototype.splice.call(arguments, 0, 0, 'swapMeshIndexes')
|
||||
this.delegate.apply(this, arguments);
|
||||
};
|
||||
|
||||
LayerManager.prototype.destroy = function() {
|
||||
for (var i = 0; i < this.ncTokens.length; i++) {
|
||||
Nc.off(this.ncTokens[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue