Browse Source

Merge pull request #19835 from Mugen87/dev45

Editor: Avoid runtime error in outliner.
Mr.doob 5 năm trước cách đây
mục cha
commit
83bf27e796
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      editor/js/libs/ui.three.js

+ 1 - 1
editor/js/libs/ui.three.js

@@ -506,7 +506,7 @@ UIOutliner.prototype.setOptions = function ( options ) {
 
 	function onDrop( event ) {
 
-		if ( this === currentDrag ) return;
+		if ( this === currentDrag || currentDrag === undefined ) return;
 
 		this.className = 'option';