@galacean/effects-plugin-model 2.0.0-alpha.15 → 2.0.0-alpha.17

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/alipay.js CHANGED
@@ -2525,7 +2525,7 @@ function _assert_this_initialized(self) {
2525
2525
  _this.skin = proxy.getSkinObj(engine);
2526
2526
  _this.morph = proxy.getMorphObj();
2527
2527
  _this.hide = proxy.isHide();
2528
- _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.listIndex) || 0;
2528
+ _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.renderOrder) || 0;
2529
2529
  //
2530
2530
  _this.subMeshes = [];
2531
2531
  var geometry = proxy.getGeometry();
@@ -4430,7 +4430,7 @@ exports.ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
4430
4430
  var _this_sceneManager;
4431
4431
  this.createContent();
4432
4432
  this.item.type = VFX_ITEM_TYPE_3D;
4433
- this.priority = this.item.listIndex;
4433
+ this.priority = this.item.renderOrder;
4434
4434
  this.sceneManager = getSceneManager(this);
4435
4435
  (_this_sceneManager = this.sceneManager) == null ? void 0 : _this_sceneManager.addItem(this.content);
4436
4436
  if (this.item.parentId && this.item.parent) {
@@ -4547,7 +4547,7 @@ exports.ModelSkyboxComponent = /*#__PURE__*/ function(RendererComponent) {
4547
4547
  var _this_sceneManager;
4548
4548
  this.createContent();
4549
4549
  this.item.type = VFX_ITEM_TYPE_3D;
4550
- this.priority = this.item.listIndex;
4550
+ this.priority = this.item.renderOrder;
4551
4551
  this.sceneManager = getSceneManager(this);
4552
4552
  (_this_sceneManager = this.sceneManager) == null ? void 0 : _this_sceneManager.addItem(this.content);
4553
4553
  this.setVisible(true);
@@ -8599,7 +8599,7 @@ exports.CullMode = void 0;
8599
8599
  _this.specularImage = data.specularImage;
8600
8600
  _this.specularImageSize = data.specularImageSize;
8601
8601
  _this.specularMipCount = data.specularMipCount;
8602
- _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.listIndex) || 0;
8602
+ _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.renderOrder) || 0;
8603
8603
  return _this;
8604
8604
  }
8605
8605
  var _proto = PSkybox.prototype;
@@ -12011,15 +12011,15 @@ var JSONConverter = /*#__PURE__*/ function() {
12011
12011
  _proto.processScene = function processScene(sceneData) {
12012
12012
  var _this = this;
12013
12013
  return _async_to_generator(function() {
12014
- var sceneJSON, oldScene, binFiles, _iterator, _step, bin, _, newScene;
12014
+ var sceneJSON, _tmp, oldScene, binFiles, _iterator, _step, bin, _, newScene;
12015
12015
  return __generator(this, function(_state) {
12016
12016
  switch(_state.label){
12017
12017
  case 0:
12018
- if (!_instanceof1(sceneData, Object)) return [
12018
+ if (!effects.isObject(sceneData)) return [
12019
12019
  3,
12020
12020
  1
12021
12021
  ];
12022
- sceneJSON = sceneData;
12022
+ _tmp = sceneData;
12023
12023
  return [
12024
12024
  3,
12025
12025
  3
@@ -12030,9 +12030,10 @@ var JSONConverter = /*#__PURE__*/ function() {
12030
12030
  _this.loadJSON(sceneData)
12031
12031
  ];
12032
12032
  case 2:
12033
- sceneJSON = _state.sent();
12033
+ _tmp = _state.sent();
12034
12034
  _state.label = 3;
12035
12035
  case 3:
12036
+ sceneJSON = _tmp;
12036
12037
  // @ts-expect-error
12037
12038
  sceneJSON.textures.forEach(function(tex) {
12038
12039
  if (tex.source === undefined) {
@@ -13361,7 +13362,7 @@ var vertexBufferSemanticMap = {
13361
13362
 
13362
13363
  effects.registerPlugin("tree", ModelTreePlugin, effects.VFXItem, true);
13363
13364
  effects.registerPlugin("model", ModelPlugin, effects.VFXItem);
13364
- var version = "2.0.0-alpha.15";
13365
+ var version = "2.0.0-alpha.17";
13365
13366
  effects.logger.info("plugin model version: " + version);
13366
13367
  if (version !== effects.version) {
13367
13368
  console.error("注意:请统一 Model 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Model plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");