Przeglądaj źródła

Merge pull request #19835 from Mugen87/dev45

Editor: Avoid runtime error in outliner.
Mr.doob 6 lat temu
rodzic
commit
83bf27e796
1 zmienionych plików z 1 dodań i 1 usunięć
  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号