Browse Source

Clean up.

Mr.doob 7 years ago
parent
commit
abce986364
1 changed files with 4 additions and 2 deletions
  1. 4 2
      editor/js/Viewport.js

+ 4 - 2
editor/js/Viewport.js

@@ -410,9 +410,11 @@ var Viewport = function ( editor ) {
 	} );
 
 	signals.objectRemoved.add( function ( object ) {
-		
-		if(object === transformControls.object){
+
+		if ( object === transformControls.object ) {
+
 			transformControls.detach();
+
 		}
 
 		object.traverse( function ( child ) {