浏览代码

Editor: Ignore Sprites when updating selectionBox.

Mr.doob 11 年之前
父节点
当前提交
39d922d981
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 !== null ) {
 
 
-			if ( object.geometry !== undefined ) {
+			if ( object.geometry !== undefined &&
+				 object instanceof THREE.Sprite === false ) {
 
 
 				selectionBox.update( object );
 				selectionBox.update( object );
 				selectionBox.visible = true;
 				selectionBox.visible = true;