Skip to content

Commit f85c501

Browse files
committed
Remove assert
1 parent 4b8a51c commit f85c501

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Libs/Analyze/Shape.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,8 @@ void Shape::recompute_original_surface() {
125125
original_meshes_.set_mesh(0, mesh_handle);
126126
}
127127

128-
129128
//---------------------------------------------------------------------------
130-
void Shape::ensure_segmentation()
131-
{
129+
void Shape::ensure_segmentation() {
132130
if (get_segmentation()) {
133131
return;
134132
}
@@ -159,8 +157,7 @@ void Shape::ensure_segmentation()
159157
//---------------------------------------------------------------------------
160158
MeshGroup Shape::get_groomed_meshes(bool wait) {
161159
if (!subject_) {
162-
std::cerr << "Error: asked for groomed meshes when none are present!\n";
163-
assert(0);
160+
return {};
164161
}
165162

166163
if (!groomed_meshes_.valid() || groomed_meshes_.meshes().size() != subject_->get_number_of_domains()) {

0 commit comments

Comments
 (0)