@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.21 → 2.0.0-alpha.23

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.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects player editor gizmo plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 茂安,旻诺
6
- * Version: v2.0.0-alpha.21
6
+ * Version: v2.0.0-alpha.23
7
7
  */
8
8
 
9
9
  import * as EFFECTS from '@galacean/effects';
@@ -3032,48 +3032,42 @@ var GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
3032
3032
  if (targetItem.type === "7" || !gizmoPlugin) {
3033
3033
  return;
3034
3034
  }
3035
- var gizmoVFXItemList = composition.loaderData.gizmoTarget[targetItem.id];
3036
- if (gizmoVFXItemList && gizmoVFXItemList.length > 0) {
3037
- for(var _iterator2 = _create_for_of_iterator_helper_loose(gizmoVFXItemList), _step2; !(_step2 = _iterator2()).done;){
3038
- var gizmoVFXItem = _step2.value;
3039
- var gizmoSubType = gizmoVFXItem.getComponent(GizmoComponent).subType;
3040
- switch(gizmoSubType){
3041
- case GizmoSubType.particleEmitter:
3042
- this.createParticleContent(targetItem, gizmoPlugin.meshToAdd);
3043
- break;
3044
- case GizmoSubType.modelWireframe:
3045
- this.needCreateModelContent = true;
3046
- break;
3047
- case GizmoSubType.box:
3048
- case GizmoSubType.sphere:
3049
- case GizmoSubType.cylinder:
3050
- case GizmoSubType.cone:
3051
- case GizmoSubType.torus:
3052
- case GizmoSubType.sprite:
3053
- case GizmoSubType.frustum:
3054
- case GizmoSubType.directionLight:
3055
- case GizmoSubType.pointLight:
3056
- case GizmoSubType.spotLight:
3057
- case GizmoSubType.floorGrid:
3058
- this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3059
- break;
3060
- case GizmoSubType.camera:
3061
- case GizmoSubType.light:
3062
- this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3063
- break;
3064
- case GizmoSubType.rotation:
3065
- case GizmoSubType.scale:
3066
- case GizmoSubType.translation:
3067
- this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3068
- break;
3069
- case GizmoSubType.viewHelper:
3070
- this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3071
- break;
3072
- case GizmoSubType.boundingBox:
3073
- this.createBoundingBoxContent(targetItem, gizmoPlugin.meshToAdd);
3074
- break;
3075
- }
3076
- }
3035
+ var gizmoSubType = this.subType;
3036
+ switch(gizmoSubType){
3037
+ case GizmoSubType.particleEmitter:
3038
+ this.createParticleContent(targetItem, gizmoPlugin.meshToAdd);
3039
+ break;
3040
+ case GizmoSubType.modelWireframe:
3041
+ this.needCreateModelContent = true;
3042
+ break;
3043
+ case GizmoSubType.box:
3044
+ case GizmoSubType.sphere:
3045
+ case GizmoSubType.cylinder:
3046
+ case GizmoSubType.cone:
3047
+ case GizmoSubType.torus:
3048
+ case GizmoSubType.sprite:
3049
+ case GizmoSubType.frustum:
3050
+ case GizmoSubType.directionLight:
3051
+ case GizmoSubType.pointLight:
3052
+ case GizmoSubType.spotLight:
3053
+ case GizmoSubType.floorGrid:
3054
+ this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3055
+ break;
3056
+ case GizmoSubType.camera:
3057
+ case GizmoSubType.light:
3058
+ this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3059
+ break;
3060
+ case GizmoSubType.rotation:
3061
+ case GizmoSubType.scale:
3062
+ case GizmoSubType.translation:
3063
+ this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3064
+ break;
3065
+ case GizmoSubType.viewHelper:
3066
+ this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3067
+ break;
3068
+ case GizmoSubType.boundingBox:
3069
+ this.createBoundingBoxContent(targetItem, gizmoPlugin.meshToAdd);
3070
+ break;
3077
3071
  }
3078
3072
  composition.loaderData.gizmoItems.push(this.item);
3079
3073
  };
@@ -3678,7 +3672,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3678
3672
  }(AbstractPlugin);
3679
3673
 
3680
3674
  registerPlugin("editor-gizmo", EditorGizmoPlugin, VFXItem);
3681
- var version = "2.0.0-alpha.21";
3675
+ var version = "2.0.0-alpha.23";
3682
3676
  logger.info("Plugin editor gizmo version: " + version + ".");
3683
3677
  if (version !== EFFECTS.version) {
3684
3678
  console.error("注意:请统一 Editor Gizmo 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Editor Gizmo plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");