Mr.doob %!s(int64=3) %!d(string=hai) anos
pai
achega
45d40e8f00
Modificáronse 6 ficheiros con 8 adicións e 5 borrados
  1. 2 1
      build/three.cjs
  2. 2 1
      build/three.js
  3. 0 0
      build/three.min.js
  4. 2 1
      build/three.module.js
  5. 1 1
      editor/sw.js
  6. 1 1
      package.json

+ 2 - 1
build/three.cjs

@@ -2674,7 +2674,8 @@ class WebGLRenderTarget extends EventDispatcher {
 		this.texture = source.texture.clone();
 		this.texture.isRenderTargetTexture = true; // ensure image object is not shared, see #20328
 
-		this.texture.image = Object.assign({}, source.texture.image);
+		const image = Object.assign({}, source.texture.image);
+		this.texture.source = new Source(image);
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;
 		if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();

+ 2 - 1
build/three.js

@@ -2676,7 +2676,8 @@
 			this.texture = source.texture.clone();
 			this.texture.isRenderTargetTexture = true; // ensure image object is not shared, see #20328
 
-			this.texture.image = Object.assign({}, source.texture.image);
+			const image = Object.assign({}, source.texture.image);
+			this.texture.source = new Source(image);
 			this.depthBuffer = source.depthBuffer;
 			this.stencilBuffer = source.stencilBuffer;
 			if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
build/three.min.js


+ 2 - 1
build/three.module.js

@@ -3416,7 +3416,8 @@ class WebGLRenderTarget extends EventDispatcher {
 
 		// ensure image object is not shared, see #20328
 
-		this.texture.image = Object.assign( {}, source.texture.image );
+		const image = Object.assign( {}, source.texture.image );
+		this.texture.source = new Source( image );
 
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;

+ 1 - 1
editor/sw.js

@@ -1,4 +1,4 @@
-// r140
+// r140.1
 
 const cacheName = 'threejs-editor';
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "three",
-  "version": "0.140.0",
+  "version": "0.140.1",
   "description": "JavaScript 3D library",
   "type": "module",
   "main": "./build/three.js",

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio