浏览代码

Merge pull request #19835 from Mugen87/dev45

Editor: Avoid runtime error in outliner.
Mr.doob 5 年之前
父节点
当前提交
83bf27e796
共有 1 个文件被更改,包括 1 次插入1 次删除
  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';