Skip to content

Commit e17c7f3

Browse files
author
Grant Karapetyan
authored
update dirty flags due to corner rendering (#189)
1 parent b1ae749 commit e17c7f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/MRMesh/MRVisualObject.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ void VisualObject::setDirtyFlags( uint32_t mask )
134134
if ( mask & DIRTY_POSITION )
135135
mask |= DIRTY_ALL_NORMALS | DIRTY_BOUNDING_BOX | DIRTY_BOUNDING_BOX_XF | DIRTY_BORDER_LINES | DIRTY_EDGES_SELECTION;
136136
if ( mask & DIRTY_FACE )
137-
mask |= DIRTY_ALL_NORMALS | DIRTY_BORDER_LINES | DIRTY_EDGES_SELECTION;
137+
mask |= DIRTY_ALL_NORMALS | DIRTY_BORDER_LINES | DIRTY_EDGES_SELECTION | DIRTY_POSITION;
138+
// DIRTY_POSITION because we use corner rendering and need to update render verts
139+
138140
dirty_ |= mask;
139141
}
140142

0 commit comments

Comments
 (0)