Bläddra i källkod

ExternalTexture: Support .copy(), .clone() (#31731)

Don McCurdy 4 månader sedan
förälder
incheckning
1ef2e600e3
1 ändrade filer med 10 tillägg och 0 borttagningar
  1. 10 0
      src/textures/ExternalTexture.js

+ 10 - 0
src/textures/ExternalTexture.js

@@ -41,6 +41,16 @@ class ExternalTexture extends Texture {
 
 	}
 
+	copy( source ) {
+
+		super.copy( source );
+
+		this.sourceTexture = source.sourceTexture;
+
+		return this;
+
+	}
+
 }
 
 export { ExternalTexture };

粤ICP备19079148号