Selaa lähdekoodia

Merge pull request #18243 from Mugen87/dev29

Editor: Fix drag/drop in Outliner.
Michael Herzog 5 vuotta sitten
vanhempi
commit
c34c4adf92
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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' );