Skip to content

Commit ba1f08c

Browse files
authored
Editor: Fix clone of skinned meshes. (#25945)
1 parent b19cb18 commit ba1f08c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

editor/js/Menubar.Edit.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
55
import { AddObjectCommand } from './commands/AddObjectCommand.js';
66
import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js';
77
import { SetPositionCommand } from './commands/SetPositionCommand.js';
8+
import { clone } from '../../examples/jsm/utils/SkeletonUtils.js';
89

910
function MenubarEdit( editor ) {
1011

@@ -123,7 +124,7 @@ function MenubarEdit( editor ) {
123124

124125
if ( object === null || object.parent === null ) return; // avoid cloning the camera or scene
125126

126-
object = object.clone();
127+
object = clone( object );
127128

128129
editor.execute( new AddObjectCommand( editor, object ) );
129130

0 commit comments

Comments
 (0)