@galacean/effects-plugin-model 2.0.0-alpha.29 → 2.0.0-alpha.30

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
@@ -10286,6 +10286,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
10286
10286
  return this.startGesture(arg);
10287
10287
  };
10288
10288
  _proto.onZMoving = function onZMoving(x, y, speed) {
10289
+ if (speed === void 0) speed = 0.015;
10289
10290
  if (!this.startParams.mouseEvent) {
10290
10291
  return this.composition.camera.getOptions();
10291
10292
  }
@@ -10298,7 +10299,7 @@ var CameraGestureHandlerImp = /*#__PURE__*/ function() {
10298
10299
  clientWidth: arg0.clientWidth,
10299
10300
  clientHeight: arg0.clientHeight,
10300
10301
  target: arg0.target,
10301
- speed: speed != null ? speed : 0.015
10302
+ speed: speed
10302
10303
  };
10303
10304
  return this.moveGesture(arg);
10304
10305
  };
@@ -11863,10 +11864,8 @@ function createGeometryData(props, subMeshes) {
11863
11864
  var vertexChannels = [];
11864
11865
  for(var attrib1 in props.attributes){
11865
11866
  var attribData1 = props.attributes[attrib1];
11866
- var semantic = vertexBufferSemanticMap[attrib1];
11867
- if (!semantic) {
11868
- throw new Error("Invalid attrib " + attrib1 + ".");
11869
- }
11867
+ var _vertexBufferSemanticMap_attrib;
11868
+ var semantic = (_vertexBufferSemanticMap_attrib = vertexBufferSemanticMap[attrib1]) != null ? _vertexBufferSemanticMap_attrib : attrib1;
11870
11869
  // @ts-expect-error
11871
11870
  vertexCount = attribData1.data.length / attribData1.size;
11872
11871
  var _attribData_type;
@@ -13822,7 +13821,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
13822
13821
 
13823
13822
  EFFECTS.registerPlugin("tree", ModelTreePlugin, EFFECTS.VFXItem, true);
13824
13823
  EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
13825
- var version = "2.0.0-alpha.29";
13824
+ var version = "2.0.0-alpha.30";
13826
13825
  EFFECTS.logger.info("Plugin model version: " + version + ".");
13827
13826
  if (version !== EFFECTS__namespace.version) {
13828
13827
  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!");