Cleanup: Use C++ BitVector for sculpt boundary info
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user