@galacean/engine 1.1.0-beta.22 → 1.1.0-beta.24
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/browser.js +11 -9
- package/dist/browser.min.js +1 -1
- package/dist/main.js +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
- package/dist/.DS_Store +0 -0
package/dist/browser.js
CHANGED
|
@@ -8463,9 +8463,9 @@
|
|
|
8463
8463
|
if (relativeToLocal) {
|
|
8464
8464
|
var _tempVec30 = Transform._tempVec30;
|
|
8465
8465
|
Vector3.transformByQuat(translation, this.worldRotationQuaternion, _tempVec30);
|
|
8466
|
-
this.
|
|
8466
|
+
this.worldPosition.add(_tempVec30);
|
|
8467
8467
|
} else {
|
|
8468
|
-
this.
|
|
8468
|
+
this.worldPosition.add(translation);
|
|
8469
8469
|
}
|
|
8470
8470
|
};
|
|
8471
8471
|
_proto._rotateXYZ = function _rotateXYZ(x, y, z, relativeToLocal) {
|
|
@@ -11780,10 +11780,11 @@
|
|
|
11780
11780
|
return this.getPropertyValue(property);
|
|
11781
11781
|
};
|
|
11782
11782
|
_proto.setTexture = function setTexture(property, value) {
|
|
11783
|
-
|
|
11783
|
+
var refCount = this._refCount;
|
|
11784
|
+
if (refCount > 0) {
|
|
11784
11785
|
var lastValue = this.getPropertyValue(property);
|
|
11785
|
-
lastValue && lastValue._addReferCount(-
|
|
11786
|
-
value && value._addReferCount(
|
|
11786
|
+
lastValue && lastValue._addReferCount(-refCount);
|
|
11787
|
+
value && value._addReferCount(refCount);
|
|
11787
11788
|
}
|
|
11788
11789
|
this._setPropertyValue(property, exports.ShaderPropertyType.Texture, value);
|
|
11789
11790
|
};
|
|
@@ -11791,16 +11792,17 @@
|
|
|
11791
11792
|
return this.getPropertyValue(property);
|
|
11792
11793
|
};
|
|
11793
11794
|
_proto.setTextureArray = function setTextureArray(property, value) {
|
|
11794
|
-
|
|
11795
|
+
var refCount = this._refCount;
|
|
11796
|
+
if (refCount > 0) {
|
|
11795
11797
|
var lastValue = this.getPropertyValue(property);
|
|
11796
11798
|
if (lastValue) {
|
|
11797
11799
|
for(var i = 0, n = lastValue.length; i < n; i++){
|
|
11798
|
-
lastValue[i]._addReferCount(-
|
|
11800
|
+
lastValue[i]._addReferCount(-refCount);
|
|
11799
11801
|
}
|
|
11800
11802
|
}
|
|
11801
11803
|
if (value) {
|
|
11802
11804
|
for(var i1 = 0, n1 = value.length; i1 < n1; i1++){
|
|
11803
|
-
value[i1]._addReferCount(
|
|
11805
|
+
value[i1]._addReferCount(refCount);
|
|
11804
11806
|
}
|
|
11805
11807
|
}
|
|
11806
11808
|
}
|
|
@@ -43519,7 +43521,7 @@
|
|
|
43519
43521
|
], GALACEAN_animation_event);
|
|
43520
43522
|
|
|
43521
43523
|
//@ts-ignore
|
|
43522
|
-
var version = "1.1.0-beta.
|
|
43524
|
+
var version = "1.1.0-beta.24";
|
|
43523
43525
|
console.log("Galacean engine version: " + version);
|
|
43524
43526
|
for(var key in CoreObjects){
|
|
43525
43527
|
Loader.registerClass(key, CoreObjects[key]);
|