Cleanup: Use C++ BitVector for sculpt boundary info

This commit is contained in:
Hans Goudey
2023-11-19 12:53:25 -05:00
parent 323259a7da
commit ee9265710a
3 changed files with 9 additions and 9 deletions

View File

@@ -9,6 +9,7 @@
*/
#include "BLI_array.hh"
#include "BLI_bit_vector.hh"
#include "BLI_bitmap.h"
#include "BLI_compiler_compat.h"
#include "BLI_math_matrix_types.hh"
@@ -388,7 +389,7 @@ struct SculptPersistentBase {
struct SculptVertexInfo {
/* Indexed by base mesh vertex index, stores if that vertex is a boundary. */
BLI_bitmap *boundary;
blender::BitVector<> boundary;
};
struct SculptBoundaryEditInfo {

View File

@@ -1460,7 +1460,7 @@ static void sculptsession_free_pbvh(Object *object)
MEM_SAFE_FREE(ss->preview_vert_list);
ss->preview_vert_count = 0;
MEM_SAFE_FREE(ss->vertex_info.boundary);
ss->vertex_info.boundary.clear_and_shrink();
MEM_SAFE_FREE(ss->fake_neighbors.fake_neighbor_index);
}