Browse Source

Mesh: Include morph target properties on copy().

Don McCurdy 8 years ago
parent
commit
162d62e028
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/objects/Mesh.js

+ 12 - 0
src/objects/Mesh.js

@@ -50,6 +50,18 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 		this.drawMode = source.drawMode;
 
+		if ( source.morphTargetInfluences !== undefined ) {
+
+			this.morphTargetInfluences = source.morphTargetInfluences.slice();
+
+		}
+
+		if ( source.morphTargetDictionary !== undefined ) {
+
+			this.morphTargetDictionary = Object.assign( {}, source.morphTargetDictionary );
+
+		}
+
 		return this;
 
 	},