瀏覽代碼

Editor: Fix drag/drop in Outliner.

Mugen87 5 年之前
父節點
當前提交
d7b8a96235
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      editor/js/libs/ui.three.js

+ 2 - 0
editor/js/libs/ui.three.js

@@ -233,6 +233,7 @@ var UIOutliner = function ( editor ) {
 	}, false );
 
 	this.dom = dom;
+	this.editor = editor;
 
 	this.options = [];
 	this.selectedIndex = - 1;
@@ -369,6 +370,7 @@ UIOutliner.prototype.setOptions = function ( options ) {
 
 		if ( newParentIsChild ) return;
 
+		var editor = scope.editor;
 		editor.execute( new MoveObjectCommand( editor, object, newParent, nextObject ) );
 
 		var changeEvent = document.createEvent( 'HTMLEvents' );