Browse Source

r152 (bis)

Mr.doob 2 years ago
parent
commit
a0a2e498ef
2 changed files with 2 additions and 1 deletions
  1. 2 1
      editor/js/Menubar.Edit.js
  2. BIN
      examples/screenshots/webxr_xr_dragging.jpg

+ 2 - 1
editor/js/Menubar.Edit.js

@@ -5,6 +5,7 @@ import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 import { AddObjectCommand } from './commands/AddObjectCommand.js';
 import { AddObjectCommand } from './commands/AddObjectCommand.js';
 import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js';
 import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js';
 import { SetPositionCommand } from './commands/SetPositionCommand.js';
 import { SetPositionCommand } from './commands/SetPositionCommand.js';
+import { clone } from '../../examples/jsm/utils/SkeletonUtils.js';
 
 
 function MenubarEdit( editor ) {
 function MenubarEdit( editor ) {
 
 
@@ -123,7 +124,7 @@ function MenubarEdit( editor ) {
 
 
 		if ( object === null || object.parent === null ) return; // avoid cloning the camera or scene
 		if ( object === null || object.parent === null ) return; // avoid cloning the camera or scene
 
 
-		object = object.clone();
+		object = clone( object );
 
 
 		editor.execute( new AddObjectCommand( editor, object ) );
 		editor.execute( new AddObjectCommand( editor, object ) );
 
 

BIN
examples/screenshots/webxr_xr_dragging.jpg