Skip to content

Commit 2e2b9c4

Browse files
committed
ObjectLabel: fix potential crash
1 parent 57b0bc2 commit 2e2b9c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/MRMesh/MRObjectLabel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ void ObjectLabel::buildMesh_()
167167

168168
void ObjectLabel::updatePivotShift_()
169169
{
170+
if ( !mesh_ )
171+
return;
170172
const Box3f box = mesh_->computeBoundingBox();
171173
if ( box.valid() )
172174
{

0 commit comments

Comments
 (0)