Explorar o código

Editor: Avoid runtime error in outliner.

Mugen87 %!s(int64=5) %!d(string=hai) anos
pai
achega
771c7f4961
Modificáronse 1 ficheiros con 1 adicións e 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';