@galacean/effects-plugin-editor-gizmo 2.9.1 → 2.9.2

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,11 +3,11 @@
3
3
  * Description: Galacean Effects player editor gizmo plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 茂安,旻诺
6
- * Version: v2.9.1
6
+ * Version: v2.9.2
7
7
  */
8
8
 
9
9
  import * as EFFECTS from '@galacean/effects';
10
- import { glContext, Texture, noop, math, Geometry, Transform, Mesh, Material, DestroyOptions, GLSLVersion, GLGeometry, serialize, effectsClass, HitTestType, spec, PluginSystem, RendererComponent, ParticleSystemRenderer, assertExist, RenderPassPriorityPostprocess, TextureLoadAction, RenderPass, RenderPassPriorityPrepare, Plugin, registerPlugin, logger } from '@galacean/effects';
10
+ import { glContext, Texture, noop, math, Geometry, Transform, Mesh, Material, DestroyOptions, GLSLVersion, GLGeometry, serialize, effectsClass, HitTestType, spec, PluginSystem, RendererComponent, ParticleSystemRenderer, assertExist, ParticleSystem, RenderPassPriorityPostprocess, TextureLoadAction, RenderPass, RenderPassPriorityPrepare, Plugin, registerPlugin, logger } from '@galacean/effects';
11
11
 
12
12
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
13
13
  try {
@@ -3427,7 +3427,7 @@ var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
3427
3427
  };
3428
3428
  _proto.createParticleContent = function createParticleContent(item) {
3429
3429
  var _this_item_composition;
3430
- var shape = item.props.content.shape;
3430
+ var shape = item.getComponent(ParticleSystem).definition.shape;
3431
3431
  var engine = (_this_item_composition = this.item.composition) == null ? void 0 : _this_item_composition.renderer.engine;
3432
3432
  assertExist(engine);
3433
3433
  this.targetItem = item;
@@ -3701,7 +3701,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(Plugin) {
3701
3701
  registerPlugin("editor-gizmo", EditorGizmoPlugin);
3702
3702
  /**
3703
3703
  * 插件版本号
3704
- */ var version = "2.9.1";
3704
+ */ var version = "2.9.2";
3705
3705
  logger.info("Plugin editor gizmo version: " + version + ".");
3706
3706
  if (version !== EFFECTS.version) {
3707
3707
  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!");