Răsfoiți Sursa

TransformControls: Fixed intricate bug.

Mr.doob 11 ani în urmă
părinte
comite
af2c846625
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      examples/js/controls/TransformControls.js

+ 1 - 1
examples/js/controls/TransformControls.js

@@ -642,7 +642,7 @@
 		this.detach = function ( object ) {
 		this.detach = function ( object ) {
 
 
 			scope.object = undefined;
 			scope.object = undefined;
-			this.axis = undefined;
+			this.axis = null;
 
 
 			this.gizmo["translate"].hide();
 			this.gizmo["translate"].hide();
 			this.gizmo["rotate"].hide();
 			this.gizmo["rotate"].hide();