Browse Source

Editor: Fixed axis to null breakage.

Mr.doob 11 năm trước cách đây
mục cha
commit
d5eb03dd83
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;