Skip to content

Commit

Permalink
Merge pull request #18243 from Mugen87/dev29
Browse files Browse the repository at this point in the history
Editor: Fix drag/drop in Outliner.
  • Loading branch information
Mugen87 authored Dec 25, 2019
2 parents 9edcc24 + d7b8a96 commit c34c4ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/js/libs/ui.three.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ var UIOutliner = function ( editor ) {
}, false );

this.dom = dom;
this.editor = editor;

this.options = [];
this.selectedIndex = - 1;
Expand Down Expand Up @@ -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' );
Expand Down

0 comments on commit c34c4ad

Please sign in to comment.