Skip to content

Commit

Permalink
Update Object3D.js
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
srmcgann authored Jan 18, 2025
1 parent 7a4365d commit a7d2e78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/Object3D.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,15 +1002,15 @@ class Object3D extends EventDispatcher {

if ( recursive === true ) {

if ( typeof source.geometry.clone != 'undefined' ) {
if ( typeof source.geometry.copy != 'undefined' ) {

this.geometry = source.geometry.clone( true );
this.geometry = source.geometry.copy( true );

}

if ( typeof source.material.clone != 'undefined' ) {
if ( typeof source.material.copy != 'undefined' ) {

this.material = source.material.clone( true );
this.material = source.material.copy( true );

}

Expand Down

0 comments on commit a7d2e78

Please sign in to comment.