Browse Source

Editor: Ignore Sprites when updating selectionBox.

Mr.doob 11 years ago
parent
commit
39d922d981
1 changed files with 2 additions and 1 deletions
  1. 2 1
      editor/js/Viewport.js

+ 2 - 1
editor/js/Viewport.js

@@ -272,7 +272,8 @@ var Viewport = function ( editor ) {
 
 		if ( object !== null ) {
 
-			if ( object.geometry !== undefined ) {
+			if ( object.geometry !== undefined &&
+				 object instanceof THREE.Sprite === false ) {
 
 				selectionBox.update( object );
 				selectionBox.visible = true;