Browse Source

Object3D: Honor `animations` in `copy()`. (#25928)

Michael Herzog 2 years ago
parent
commit
45304ac64b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/core/Object3D.js

+ 2 - 0
src/core/Object3D.js

@@ -945,6 +945,8 @@ class Object3D extends EventDispatcher {
 		this.frustumCulled = source.frustumCulled;
 		this.frustumCulled = source.frustumCulled;
 		this.renderOrder = source.renderOrder;
 		this.renderOrder = source.renderOrder;
 
 
+		this.animations = source.animations;
+
 		this.userData = JSON.parse( JSON.stringify( source.userData ) );
 		this.userData = JSON.parse( JSON.stringify( source.userData ) );
 
 
 		if ( recursive === true ) {
 		if ( recursive === true ) {