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

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/loader.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects player model plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 飂兮
6
- * Version: v2.0.0-alpha.15
6
+ * Version: v2.0.0-alpha.16
7
7
  */
8
8
 
9
9
  import { math, Transform, spec, PLAYER_OPTIONS_ENV_EDITOR, glContext, Texture, TextureSourceType, Material, Mesh, Geometry, GLSLVersion, addItem, removeItem, generateGUID, loadImage, effectsClass, VFXItem, ItemBehaviour, AbstractPlugin, registerPlugin, logger, version as version$1, HitTestType, RendererComponent, AnimationClip, RenderPass, TextureLoadAction, DestroyOptions, RenderPassDestroyAttachmentType, Renderer, getDefaultTextureFactory, Player, glType2VertexFormatType, Downloader, getStandardJSON } from '@galacean/effects';
@@ -2729,7 +2729,7 @@ function _assert_this_initialized(self) {
2729
2729
  _this.skin = proxy.getSkinObj(engine);
2730
2730
  _this.morph = proxy.getMorphObj();
2731
2731
  _this.hide = proxy.isHide();
2732
- _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.listIndex) || 0;
2732
+ _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.renderOrder) || 0;
2733
2733
  //
2734
2734
  _this.subMeshes = [];
2735
2735
  var geometry = proxy.getGeometry();
@@ -5068,7 +5068,7 @@ var CullMode;
5068
5068
  _this.specularImage = data.specularImage;
5069
5069
  _this.specularImageSize = data.specularImageSize;
5070
5070
  _this.specularMipCount = data.specularMipCount;
5071
- _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.listIndex) || 0;
5071
+ _this.priority = (owner == null ? void 0 : (_owner_item = owner.item) == null ? void 0 : _owner_item.renderOrder) || 0;
5072
5072
  return _this;
5073
5073
  }
5074
5074
  var _proto = PSkybox.prototype;
@@ -6974,7 +6974,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
6974
6974
 
6975
6975
  registerPlugin("tree", ModelTreePlugin, VFXItem, true);
6976
6976
  registerPlugin("model", ModelPlugin, VFXItem);
6977
- var version = "2.0.0-alpha.15";
6977
+ var version = "2.0.0-alpha.16";
6978
6978
  logger.info("plugin model version: " + version);
6979
6979
  if (version !== version$1) {
6980
6980
  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!");
@@ -7050,7 +7050,7 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
7050
7050
  var _this_sceneManager;
7051
7051
  this.createContent();
7052
7052
  this.item.type = VFX_ITEM_TYPE_3D;
7053
- this.priority = this.item.listIndex;
7053
+ this.priority = this.item.renderOrder;
7054
7054
  this.sceneManager = getSceneManager(this);
7055
7055
  (_this_sceneManager = this.sceneManager) == null ? void 0 : _this_sceneManager.addItem(this.content);
7056
7056
  if (this.item.parentId && this.item.parent) {
@@ -7167,7 +7167,7 @@ var ModelSkyboxComponent = /*#__PURE__*/ function(RendererComponent) {
7167
7167
  var _this_sceneManager;
7168
7168
  this.createContent();
7169
7169
  this.item.type = VFX_ITEM_TYPE_3D;
7170
- this.priority = this.item.listIndex;
7170
+ this.priority = this.item.renderOrder;
7171
7171
  this.sceneManager = getSceneManager(this);
7172
7172
  (_this_sceneManager = this.sceneManager) == null ? void 0 : _this_sceneManager.addItem(this.content);
7173
7173
  this.setVisible(true);