Jelajahi Sumber

Merge pull request #19835 from Mugen87/dev45

Editor: Avoid runtime error in outliner.
Mr.doob 5 tahun lalu
induk
melakukan
83bf27e796
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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';