lythreeframe 1.0.41 → 1.0.42
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/bundle.cjs.js +3 -2
- package/dist/bundle.esm.js +3 -2
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -855,9 +855,10 @@ class TAssetPointer extends TSmartPointer {
|
|
|
855
855
|
constructor(value, referenceCount = 1) {
|
|
856
856
|
super(value, referenceCount);
|
|
857
857
|
this._uuid = value.uuid;
|
|
858
|
+
value.userData["assetPointer"] = this;
|
|
858
859
|
}
|
|
859
860
|
release() {
|
|
860
|
-
if (this.value
|
|
861
|
+
if (this.value) {
|
|
861
862
|
this.referenceCount--;
|
|
862
863
|
if (this.referenceCount === 0) {
|
|
863
864
|
this.value.dispose();
|
|
@@ -866,7 +867,7 @@ class TAssetPointer extends TSmartPointer {
|
|
|
866
867
|
}
|
|
867
868
|
}
|
|
868
869
|
forceRelease() {
|
|
869
|
-
if (this.value
|
|
870
|
+
if (this.value) {
|
|
870
871
|
this.value.dispose();
|
|
871
872
|
this.value = null;
|
|
872
873
|
this.referenceCount = 0;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -853,9 +853,10 @@ class TAssetPointer extends TSmartPointer {
|
|
|
853
853
|
constructor(value, referenceCount = 1) {
|
|
854
854
|
super(value, referenceCount);
|
|
855
855
|
this._uuid = value.uuid;
|
|
856
|
+
value.userData["assetPointer"] = this;
|
|
856
857
|
}
|
|
857
858
|
release() {
|
|
858
|
-
if (this.value
|
|
859
|
+
if (this.value) {
|
|
859
860
|
this.referenceCount--;
|
|
860
861
|
if (this.referenceCount === 0) {
|
|
861
862
|
this.value.dispose();
|
|
@@ -864,7 +865,7 @@ class TAssetPointer extends TSmartPointer {
|
|
|
864
865
|
}
|
|
865
866
|
}
|
|
866
867
|
forceRelease() {
|
|
867
|
-
if (this.value
|
|
868
|
+
if (this.value) {
|
|
868
869
|
this.value.dispose();
|
|
869
870
|
this.value = null;
|
|
870
871
|
this.referenceCount = 0;
|