@galacean/engine-physics-physx 0.9.10 → 0.9.11
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/main.js.map +1 -1
- package/dist/miniprogram.js +25 -2
- package/dist/module.js.map +1 -1
- package/package.json +4 -4
package/dist/miniprogram.js
CHANGED
|
@@ -10010,6 +10010,14 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
10010
10010
|
};
|
|
10011
10011
|
/**
|
|
10012
10012
|
* @internal
|
|
10013
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10014
|
+
var materials = this._materials;
|
|
10015
|
+
for(var i = 0, n = materials.length; i < n; i++){
|
|
10016
|
+
target._setMaterial(i, materials[i]);
|
|
10017
|
+
}
|
|
10018
|
+
};
|
|
10019
|
+
/**
|
|
10020
|
+
* @internal
|
|
10013
10021
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
10014
10022
|
this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
10015
10023
|
this.shaderData._addRefCount(-1);
|
|
@@ -10188,7 +10196,7 @@ __decorate$1([
|
|
|
10188
10196
|
ignoreClone
|
|
10189
10197
|
], exports.Renderer.prototype, "_overrideUpdate", void 0);
|
|
10190
10198
|
__decorate$1([
|
|
10191
|
-
|
|
10199
|
+
ignoreClone
|
|
10192
10200
|
], exports.Renderer.prototype, "_materials", void 0);
|
|
10193
10201
|
__decorate$1([
|
|
10194
10202
|
ignoreClone
|
|
@@ -10403,6 +10411,7 @@ SimpleSpriteAssembler = __decorate$1([
|
|
|
10403
10411
|
/**
|
|
10404
10412
|
* @internal
|
|
10405
10413
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10414
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
10406
10415
|
target.sprite = this._sprite;
|
|
10407
10416
|
};
|
|
10408
10417
|
/**
|
|
@@ -12821,12 +12830,14 @@ var VertexChangedFlags;
|
|
|
12821
12830
|
var mesh = this._mesh;
|
|
12822
12831
|
if (mesh && !mesh.destroyed) {
|
|
12823
12832
|
mesh._addRefCount(-1);
|
|
12833
|
+
mesh._updateFlagManager.removeListener(this._onMeshChanged);
|
|
12824
12834
|
this._mesh = null;
|
|
12825
12835
|
}
|
|
12826
12836
|
};
|
|
12827
12837
|
/**
|
|
12828
12838
|
* @internal
|
|
12829
12839
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
12840
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
12830
12841
|
target.mesh = this._mesh;
|
|
12831
12842
|
};
|
|
12832
12843
|
/**
|
|
@@ -13116,6 +13127,7 @@ var rePropName = RegExp("[^.[\\]]+" + "|" + // Or match property names within br
|
|
|
13116
13127
|
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13117
13128
|
this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
|
|
13118
13129
|
this._jointTexture.filterMode = exports.TextureFilterMode.Point;
|
|
13130
|
+
this._jointTexture.isGCIgnored = true;
|
|
13119
13131
|
}
|
|
13120
13132
|
shaderData.disableMacro("O3_JOINTS_NUM");
|
|
13121
13133
|
shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
|
|
@@ -13149,6 +13161,15 @@ var rePropName = RegExp("[^.[\\]]+" + "|" + // Or match property names within br
|
|
|
13149
13161
|
};
|
|
13150
13162
|
/**
|
|
13151
13163
|
* @internal
|
|
13164
|
+
* @override
|
|
13165
|
+
*/ _proto._onDestroy = function _onDestroy() {
|
|
13166
|
+
var _this_rootBone, _this__jointTexture;
|
|
13167
|
+
MeshRenderer.prototype._onDestroy.call(this);
|
|
13168
|
+
(_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
13169
|
+
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13170
|
+
};
|
|
13171
|
+
/**
|
|
13172
|
+
* @internal
|
|
13152
13173
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
13153
13174
|
MeshRenderer.prototype._cloneTo.call(this, target);
|
|
13154
13175
|
this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
|
|
@@ -19685,6 +19706,7 @@ SlicedSpriteAssembler = __decorate$1([
|
|
|
19685
19706
|
/**
|
|
19686
19707
|
* @internal
|
|
19687
19708
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
19709
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
19688
19710
|
target.sprite = this._sprite;
|
|
19689
19711
|
target.drawMode = this._drawMode;
|
|
19690
19712
|
};
|
|
@@ -20434,6 +20456,7 @@ var /**
|
|
|
20434
20456
|
/**
|
|
20435
20457
|
* @internal
|
|
20436
20458
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20459
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
20437
20460
|
target.font = this._font;
|
|
20438
20461
|
target._subFont = this._subFont;
|
|
20439
20462
|
};
|
|
@@ -35854,7 +35877,7 @@ function _interopNamespace(e) {
|
|
|
35854
35877
|
}
|
|
35855
35878
|
var CoreObjects__namespace = /*#__PURE__*/ _interopNamespace(CoreObjects);
|
|
35856
35879
|
//@ts-ignore
|
|
35857
|
-
var version = "0.9.
|
|
35880
|
+
var version = "0.9.11";
|
|
35858
35881
|
console.log("Galacean engine version: " + version);
|
|
35859
35882
|
for(var key in CoreObjects__namespace){
|
|
35860
35883
|
CoreObjects.Loader.registerClass(key, CoreObjects__namespace[key]);
|