Skip to content

Commit 93761f8

Browse files
authored
Viewport: Fix bounding box calculation for custom objects (#4992)
* Viewport: Fix bounding box calculation for custom objects * Update comment
1 parent 3ac5009 commit 93761f8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

source/MRViewer/MRViewportCamera.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -632,17 +632,9 @@ Box3f Viewport::calcBox_( const std::vector<std::shared_ptr<VisualObject>>& objs
632632
coords = &pointCloud.points;
633633
selectedVerts = &pointCloud.validPoints;
634634
}
635-
else if ( obj->asType<ObjectLabel>() || obj->asType<ObjectImGuiLabel>() )
636-
{
637-
// do nothing
638-
}
639-
else if ( obj->asType<FeatureObject>() || obj->asType<MeasurementObject>() )
640-
{
641-
// Do nothing? Not ideal.
642-
}
643635
else
644636
{
645-
assert( false );
637+
// TODO: support generic visual objects
646638
continue;
647639
}
648640
VertBitSet myVerts;

0 commit comments

Comments
 (0)