@awayjs/scene 0.13.240 → 0.13.241

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.
@@ -3153,12 +3153,12 @@ var DisplayObjectContainer = /** @class */ (function (_super) {
3153
3153
  var original_idx = this.getChildIndex(child);
3154
3154
  if (original_idx < 0)
3155
3155
  throw new _awayjs_core.ArgumentError('Parameter child must be child of this object');
3156
- if (index > this._children.length)
3156
+ if (index > this._children.length - 1)
3157
3157
  throw new _awayjs_core.RangeError('Parameter index is out of range of the child list');
3158
3158
  if (original_idx == index)
3159
3159
  return;
3160
3160
  this.removeChildAt(original_idx);
3161
- this.addChildAt(child, (original_idx < index) ? index - 1 : index);
3161
+ this.addChildAt(child, index);
3162
3162
  if (child._sessionID >= 0 && this._sessionID_childs) {
3163
3163
  delete this._sessionID_childs[child._sessionID];
3164
3164
  child._sessionID = -1;
@@ -18352,7 +18352,7 @@ var Scene = /** @class */ (function () {
18352
18352
  _awayjs_graphics.MaterialManager.materialClass = _awayjs_materials.MethodMaterial;
18353
18353
  _awayjs_graphics.MaterialManager.textureClass = _awayjs_renderer.ImageTexture2D;
18354
18354
 
18355
- console.debug('AwayJS - Scene - 0.13.240');
18355
+ console.debug('AwayJS - Scene - 0.13.241');
18356
18356
 
18357
18357
  exports.Timeline = Timeline;
18358
18358
  exports.ControllerBase = ControllerBase;