Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-06 19:42:52 +0300
committerHans Goudey <h.goudey@me.com>2022-04-06 19:42:52 +0300
commit6aaae444736199bafd1d41ec0667c03938ac80ed (patch)
treed435cdbf71992d119d31b62eaa3ce51d22596d5e /source/blender
parentd8a9bcea6ce5a64f7bac43c0d7e78707b2f64b13 (diff)
Fix: Missing virtual destructor on virtual class
This caused an ASAN report for new/delete type mismatch when using the snake hook brush in curves sculpt mode.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc b/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc
index d26af20799e..230da61c95b 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_grow_shrink.cc
@@ -57,6 +57,7 @@ using bke::CurvesGeometry;
*/
class CurvesEffect {
public:
+ virtual ~CurvesEffect() = default;
virtual void execute(CurvesGeometry &curves,
Span<int> curve_indices,
Span<float> move_distances_cu) = 0;