@galacean/effects-plugin-model 2.0.0-alpha.2 → 2.0.0-alpha.3
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/index.js +3 -3
- package/dist/index.min.js +2 -2
- package/dist/index.mjs +3 -3
- package/dist/loader.mjs +3 -3
- package/package.json +4 -4
package/dist/index.js
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.
|
|
6
|
+
* Version: v2.0.0-alpha.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -9867,7 +9867,7 @@ var CameraGestureHandlerImp = /** @class */ (function () {
|
|
|
9867
9867
|
CameraGestureHandlerImp.prototype.getItem = function () {
|
|
9868
9868
|
var _this = this;
|
|
9869
9869
|
var _a;
|
|
9870
|
-
return (_a = this.composition.items) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.
|
|
9870
|
+
return (_a = this.composition.items) === null || _a === void 0 ? void 0 : _a.find(function (item) { return item.name === _this.getCurrentTarget(); });
|
|
9871
9871
|
};
|
|
9872
9872
|
CameraGestureHandlerImp.prototype.getCurrentTarget = function () {
|
|
9873
9873
|
return this.startParams.target;
|
|
@@ -11648,7 +11648,7 @@ var GLTFHelper = /** @class */ (function () {
|
|
|
11648
11648
|
|
|
11649
11649
|
effects.registerPlugin('tree', ModelTreePlugin, effects.VFXItem, true);
|
|
11650
11650
|
effects.registerPlugin('model', ModelPlugin, effects.VFXItem);
|
|
11651
|
-
var version = "2.0.0-alpha.
|
|
11651
|
+
var version = "2.0.0-alpha.3";
|
|
11652
11652
|
effects.logger.info('plugin model version: ' + version);
|
|
11653
11653
|
|
|
11654
11654
|
exports.BoxMesh = BoxMesh;
|