소스 검색

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' );