@galacean/effects-plugin-model 2.0.0-alpha.13 → 2.0.0-alpha.15
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 +15 -5
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +3 -6
- package/dist/alipay.mjs.map +1 -1
- package/dist/gltf/loader-ecs.d.ts +3 -3
- package/dist/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +4 -7
- package/dist/index.mjs.map +1 -1
- package/dist/loader.mjs +2 -5
- package/dist/loader.mjs.map +1 -1
- package/dist/runtime/index.d.ts +1 -0
- package/package.json +4 -4
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.
|
|
6
|
+
* Version: v2.0.0-alpha.15
|
|
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';
|
|
@@ -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.
|
|
6977
|
+
var version = "2.0.0-alpha.15";
|
|
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!");
|
|
@@ -11919,13 +11919,10 @@ var JSONConverter = /*#__PURE__*/ function() {
|
|
|
11919
11919
|
newScene.compositionId = oldScene.compositionId;
|
|
11920
11920
|
newScene.compositions = oldScene.compositions;
|
|
11921
11921
|
newScene.items.forEach(function(item) {
|
|
11922
|
-
// @ts-expect-error
|
|
11923
11922
|
if (item.type === "root") {
|
|
11924
|
-
// @ts-expect-error
|
|
11925
11923
|
item.type = "ECS";
|
|
11926
11924
|
}
|
|
11927
11925
|
});
|
|
11928
|
-
// @ts-expect-error
|
|
11929
11926
|
newScene.compositions[0].items = newScene.items.map(function(item) {
|
|
11930
11927
|
return {
|
|
11931
11928
|
id: item.id
|