@galacean/effects-plugin-editor-gizmo 2.0.2 → 2.0.4
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 +2 -4
- 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 +2 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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.
|
|
6
|
+
* Version: v2.0.4
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -3101,7 +3101,6 @@ var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
|
|
|
3101
3101
|
if (gizmoSubType === GizmoSubType.particleEmitter) {
|
|
3102
3102
|
if (this.targetItem && item.content) {
|
|
3103
3103
|
this.mat = this.targetItem.transform.getWorldMatrix();
|
|
3104
|
-
//@ts-expect-error
|
|
3105
3104
|
item.content.material.setMatrix("u_model", this.mat);
|
|
3106
3105
|
}
|
|
3107
3106
|
if (this.wireframeMesh && this.targetItem) {
|
|
@@ -3220,7 +3219,6 @@ var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
|
|
|
3220
3219
|
targetTransform1.setPosition(newPos1.x, newPos1.y, newPos1.z);
|
|
3221
3220
|
}
|
|
3222
3221
|
this.mat = targetTransform1.getWorldMatrix();
|
|
3223
|
-
//@ts-expect-error
|
|
3224
3222
|
item.content.material.setMatrix("u_model", targetTransform1.getWorldMatrix());
|
|
3225
3223
|
}
|
|
3226
3224
|
}
|
|
@@ -3690,7 +3688,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
3690
3688
|
}(AbstractPlugin);
|
|
3691
3689
|
|
|
3692
3690
|
registerPlugin("editor-gizmo", EditorGizmoPlugin, VFXItem);
|
|
3693
|
-
var version = "2.0.
|
|
3691
|
+
var version = "2.0.4";
|
|
3694
3692
|
logger.info("Plugin editor gizmo version: " + version + ".");
|
|
3695
3693
|
if (version !== EFFECTS.version) {
|
|
3696
3694
|
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!");
|