Selaa lähdekoodia

Merge pull request #19835 from Mugen87/dev45

Editor: Avoid runtime error in outliner.
Mr.doob 5 vuotta sitten
vanhempi
sitoutus
83bf27e796
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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';
 

粤ICP备19079148号