Explorar o código

Editor: Ignore Sprites when updating selectionBox.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
39d922d981
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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;