Cleanup: SubdivCCG: Prevent copying of SubdivCCG

We generally do not want this struct to be copied due to its size. To
assist in finding development errors earlier, disable the copy
constructor entirely, as the destructor puts its resources into an
invalid state.

Pull Request: https://projects.blender.org/blender/blender/pulls/124439
This commit is contained in:
Sean Kim
2024-07-10 17:06:55 +02:00
committed by Sean Kim
parent 24dc9a21b1
commit d0ebd8e1a7

View File

@@ -16,6 +16,7 @@
#include "BLI_index_mask_fwd.hh"
#include "BLI_offset_indices.hh"
#include "BLI_sys_types.h"
#include "BLI_utility_mixins.hh"
#include "BLI_vector.hh"
#include "BKE_ccg.hh"
@@ -85,7 +86,7 @@ struct SubdivCCGAdjacentVertex {
};
/* Representation of subdivision surface which uses CCG grids. */
struct SubdivCCG {
struct SubdivCCG : blender::NonCopyable {
/* This is a subdivision surface this CCG was created for.
*
* TODO(sergey): Make sure the whole descriptor is valid, including all the