Explorar o código

Fix THREE.SkinnedMesh.clone() bug (#9082)

Takahiro %!s(int64=9) %!d(string=hai) anos
pai
achega
9c872b1cab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/objects/SkinnedMesh.js

+ 1 - 1
src/objects/SkinnedMesh.js

@@ -172,7 +172,7 @@ THREE.SkinnedMesh.prototype = Object.assign( Object.create( THREE.Mesh.prototype
 
 	clone: function() {
 
-		return new this.constructor( this.geometry, this.material, this.useVertexTexture ).copy( this );
+		return new this.constructor( this.geometry, this.material, this.skeleton.useVertexTexture ).copy( this );
 
 	}