Skip to content

Commit f49342d

Browse files
committed
Editor: Clean up.
1 parent 6877c68 commit f49342d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

editor/js/Viewport.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var Viewport = function ( editor ) {
7575

7676
var object = transformControls.object;
7777

78-
if ( object !== null ) {
78+
if ( object !== undefined ) {
7979

8080
switch ( transformControls.getMode() ) {
8181

@@ -364,8 +364,7 @@ var Viewport = function ( editor ) {
364364

365365
if ( object !== null ) {
366366

367-
if ( object.geometry !== undefined &&
368-
object instanceof THREE.Sprite === false ) {
367+
if ( object.geometry !== undefined ) {
369368

370369
selectionBox.update( object );
371370
selectionBox.visible = true;

0 commit comments

Comments
 (0)