@awayjs/scene 0.13.294 → 0.13.296

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- console.debug('AwayJS - Scene - 0.13.294');
1
+ console.debug('AwayJS - Scene - 0.13.296');
2
2
  export { Timeline } from './lib/base/Timeline';
3
3
  export { ControllerBase } from './lib/controllers/ControllerBase';
4
4
  export { FirstPersonController } from './lib/controllers/FirstPersonController';
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayObjectContainer.d.ts","sourceRoot":"","sources":["../../../lib/display/DisplayObjectContainer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAA6B,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAA6C,aAAa,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,qBAAa,sBAAuB,SAAQ,aAAc,YAAW,gBAAgB;IACpF,OAAc,SAAS,EAAE,MAAM,CAAoC;IACnE,OAAO,CAAC,MAAM,CAAC,cAAc,CAAqE;IAElG,OAAO,CAAC,SAAS,CAAY;IAC7B,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAA8B;IAEhE,SAAS,EAAE,OAAO,CAAS;IAElC;;OAEG;IACH,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED;;OAEG;IACH,IAAW,QAAQ,IAAI,SAAS,CAE/B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,SAAS,EAQnC;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED;;;;;;;;;;;;OAYG;IACI,WAAW,EAAE,OAAO,CAAC;IAE5B;;;;;;;;;OASG;;IAMI,YAAY,IAAI,IAAI;IAK3B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EAAE,aAAa,GAAG,IAAI;IAMvE;;;;;;;;OAQG;IACI,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAuCpD,SAAS,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI;IAK3C;;;;OAIG;IACH,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;IAiB7D,SAAS,CAAC,eAAe,IAAI,IAAI;CAMjC"}
@@ -146,14 +146,6 @@ var DisplayObjectContainer = /** @class */ (function (_super) {
146
146
  * list.
147
147
  */
148
148
  DisplayObjectContainer.prototype.addChildAt = function (child, index) {
149
- if (child.parent && child.parent == this) {
150
- var childIndex = this.getChildIndex(child);
151
- if (childIndex != index && index < this._children.length) {
152
- this._children.splice(childIndex, 1);
153
- this._children.splice(index, 0, child);
154
- }
155
- return child;
156
- }
157
149
  if (child.parent)
158
150
  child.parent.removeChild(child);
159
151
  this._children.splice(index, 0, child);
@@ -525,7 +525,9 @@ var MovieClip = /** @class */ (function (_super) {
525
525
  //changing current frame will ignore advance command for that
526
526
  //update's advanceFrame function, unless advanceFrame has
527
527
  //already been executed
528
+ this._isTimelinePass = true;
528
529
  this._timeline.gotoFrame(this, value, queue_script, false, false);
530
+ this._isTimelinePass = false;
529
531
  return true;
530
532
  };
531
533
  MovieClip.prototype.addButtonListeners = function () {
package/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- console.debug('AwayJS - Scene - 0.13.294');
1
+ console.debug('AwayJS - Scene - 0.13.296');
2
2
 
3
3
  export { IDisplayObjectAdapter } from './lib/adapters/IDisplayObjectAdapter';
4
4
  export { IMovieClipAdapter } from './lib/adapters/IMovieClipAdapter';
@@ -164,17 +164,6 @@ export class DisplayObjectContainer extends DisplayObject implements IRenderCont
164
164
  * list.
165
165
  */
166
166
  public addChildAt(child: DisplayObject, index: number): DisplayObject {
167
- if (child.parent && child.parent == this) {
168
- const childIndex: number = this.getChildIndex(child);
169
-
170
- if (childIndex != index && index < this._children.length) {
171
- this._children.splice(childIndex, 1);
172
- this._children.splice(index, 0, child);
173
- }
174
-
175
- return child;
176
- }
177
-
178
167
  if (child.parent)
179
168
  child.parent.removeChild(child);
180
169
 
@@ -634,9 +634,9 @@ export class MovieClip extends Sprite {
634
634
  //changing current frame will ignore advance command for that
635
635
  //update's advanceFrame function, unless advanceFrame has
636
636
  //already been executed
637
-
637
+ this._isTimelinePass = true;
638
638
  this._timeline.gotoFrame(this, value, queue_script, false, false);
639
-
639
+ this._isTimelinePass = false;
640
640
  return true;
641
641
  }
642
642
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awayjs/scene",
3
- "version": "0.13.294",
3
+ "version": "0.13.296",
4
4
  "description": "AwayJS scene classes",
5
5
  "main": "bundle/awayjs-scene.umd.js",
6
6
  "module": "dist/index.js",