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
|
|
@ -95,6 +95,14 @@ function (Parent, PIXI, ColorRangeReplaceFilter, Settings, ColorConverter, Nc) {
|
|||
this.container.removeChild(mesh);
|
||||
};
|
||||
|
||||
Layer.prototype.swapMeshIndexes = function(meshA, meshB) {
|
||||
var indexA = this.container.getChildIndex(meshA);
|
||||
var indexB = this.container.getChildIndex(meshB);
|
||||
|
||||
this.container.setChildIndex(meshA, indexB);
|
||||
this.container.setChildIndex(meshB, indexA);
|
||||
};
|
||||
|
||||
Layer.prototype.createMesh = function (texturePath, callback, options) {
|
||||
|
||||
var texture = (options && options.fromFrame)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue