Sfoglia il codice sorgente

Editor: Fixed axis to null breakage.

Mr.doob 11 anni fa
parent
commit
d5eb03dd83
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      editor/js/Viewport.js

+ 1 - 1
editor/js/Viewport.js

@@ -43,7 +43,7 @@ var Viewport = function ( editor ) {
 
 		controls.enabled = true;
 
-		if ( transformControls.axis !== undefined ) {
+		if ( transformControls.axis !== null ) {
 
 			controls.enabled = false;