Explorar el Código

Editor: Avoid runtime error in outliner.

Mugen87 hace 5 años
padre
commit
771c7f4961
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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';