@galacean/effects-core 1.6.6 → 1.6.7
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime core for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v1.6.
|
|
6
|
+
* Version: v1.6.7
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -8869,9 +8869,9 @@ var Transform = /** @class */ (function () {
|
|
|
8869
8869
|
*/
|
|
8870
8870
|
Transform.prototype.setScale = function (x, y, z) {
|
|
8871
8871
|
if (this.scale.x !== x || this.scale.y !== y || this.scale.z !== z) {
|
|
8872
|
-
this.scale.x = x;
|
|
8873
|
-
this.scale.y = y;
|
|
8874
|
-
this.scale.z = z;
|
|
8872
|
+
this.scale.x = x ? x : 1e-5;
|
|
8873
|
+
this.scale.y = y ? y : 1e-5;
|
|
8874
|
+
this.scale.z = z ? z : 1e-5;
|
|
8875
8875
|
this.dirtyFlags.localData = true;
|
|
8876
8876
|
this.dispatchValueChange();
|
|
8877
8877
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime core for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v1.6.
|
|
6
|
+
* Version: v1.6.7
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/******************************************************************************
|
|
@@ -8865,9 +8865,9 @@ var Transform = /** @class */ (function () {
|
|
|
8865
8865
|
*/
|
|
8866
8866
|
Transform.prototype.setScale = function (x, y, z) {
|
|
8867
8867
|
if (this.scale.x !== x || this.scale.y !== y || this.scale.z !== z) {
|
|
8868
|
-
this.scale.x = x;
|
|
8869
|
-
this.scale.y = y;
|
|
8870
|
-
this.scale.z = z;
|
|
8868
|
+
this.scale.x = x ? x : 1e-5;
|
|
8869
|
+
this.scale.y = y ? y : 1e-5;
|
|
8870
|
+
this.scale.z = z ? z : 1e-5;
|
|
8871
8871
|
this.dirtyFlags.localData = true;
|
|
8872
8872
|
this.dispatchValueChange();
|
|
8873
8873
|
}
|