@galacean/effects-plugin-model 2.0.0-alpha.31 → 2.0.0-alpha.32

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.31
6
+ * Version: v2.0.0-alpha.32
7
7
  */
8
8
 
9
9
  import * as EFFECTS from '@galacean/effects';
@@ -4437,7 +4437,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
4437
4437
 
4438
4438
  registerPlugin("tree", ModelTreePlugin, VFXItem, true);
4439
4439
  registerPlugin("model", ModelPlugin, VFXItem);
4440
- var version = "2.0.0-alpha.31";
4440
+ var version = "2.0.0-alpha.32";
4441
4441
  logger.info("Plugin model version: " + version + ".");
4442
4442
  if (version !== EFFECTS.version) {
4443
4443
  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!");
@@ -4532,6 +4532,12 @@ var ModelMeshComponent = /*#__PURE__*/ function(RendererComponent) {
4532
4532
  this.content.update();
4533
4533
  };
4534
4534
  /**
4535
+ * 组件晚更新,晚更新内部对象状态
4536
+ * @param dt - 更新间隔
4537
+ */ _proto.lateUpdate = function lateUpdate(dt) {
4538
+ this.content.lateUpdate();
4539
+ };
4540
+ /**
4535
4541
  * 组件渲染,需要检查可见性
4536
4542
  * @param renderer - 渲染器
4537
4543
  * @returns
@@ -9047,12 +9053,16 @@ function _assert_this_initialized(self) {
9047
9053
  }
9048
9054
  };
9049
9055
  /**
9056
+ * 更新骨骼动画
9057
+ */ _proto.lateUpdate = function lateUpdate() {
9058
+ var _this_skin;
9059
+ (_this_skin = this.skin) == null ? void 0 : _this_skin.updateSkinMatrices();
9060
+ };
9061
+ /**
9050
9062
  * 渲染 Mesh 对象,需要将内部相关数据传给渲染器
9051
9063
  * @param scene - 场景
9052
9064
  * @param renderer - 渲染器
9053
9065
  */ _proto.render = function render(scene, renderer) {
9054
- var _this_skin;
9055
- (_this_skin = this.skin) == null ? void 0 : _this_skin.updateSkinMatrices();
9056
9066
  this.updateMaterial(scene);
9057
9067
  this.subMeshes.forEach(function(subMesh, index) {
9058
9068
  renderer.drawGeometry(subMesh.getEffectsGeometry(), subMesh.getEffectsMaterial(), index);