lythreeframe 1.1.10 → 1.1.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.
@@ -899,7 +899,7 @@ class MaterialAssetPointer extends TAssetPointer {
899
899
  try {
900
900
  this.textures.set(name, texturePtr);
901
901
  this.getValue()[name] = texture;
902
- texture.addRef();
902
+ texturePtr.addRef();
903
903
  mat.needsUpdate = true;
904
904
  }
905
905
  catch (e) {
@@ -897,7 +897,7 @@ class MaterialAssetPointer extends TAssetPointer {
897
897
  try {
898
898
  this.textures.set(name, texturePtr);
899
899
  this.getValue()[name] = texture;
900
- texture.addRef();
900
+ texturePtr.addRef();
901
901
  mat.needsUpdate = true;
902
902
  }
903
903
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",