[Bf-blender-cvs] [dc02a49fb7f] functions: test adding a virtual destructor to solve a linker issue

Jacques Lucke noreply at git.blender.org
Mon Sep 9 11:33:59 CEST 2019


Commit: dc02a49fb7fb7f008ecec7218b4cb61f613ef97d
Author: Jacques Lucke
Date:   Mon Sep 9 11:33:54 2019 +0200
Branches: functions
https://developer.blender.org/rBdc02a49fb7fb7f008ecec7218b4cb61f613ef97d

test adding a virtual destructor to solve a linker issue

===================================================================

M	source/blender/blenkernel/BKE_falloff.hpp
M	source/blender/blenkernel/intern/falloff.cpp

===================================================================

diff --git a/source/blender/blenkernel/BKE_falloff.hpp b/source/blender/blenkernel/BKE_falloff.hpp
index 82c4025ef0d..5a5bc3dc55e 100644
--- a/source/blender/blenkernel/BKE_falloff.hpp
+++ b/source/blender/blenkernel/BKE_falloff.hpp
@@ -34,6 +34,8 @@ class ConstantFalloff : public Falloff {
   {
   }
 
+  virtual ~ConstantFalloff();
+
   Falloff *clone() const
   {
     return new ConstantFalloff(m_weight);
@@ -56,6 +58,8 @@ class PointDistanceFalloff : public Falloff {
   {
   }
 
+  virtual ~PointDistanceFalloff();
+
   Falloff *clone() const override
   {
     return new PointDistanceFalloff(m_point, m_min_distance, m_max_distance);
diff --git a/source/blender/blenkernel/intern/falloff.cpp b/source/blender/blenkernel/intern/falloff.cpp
index a5eba4a473c..100968430e9 100644
--- a/source/blender/blenkernel/intern/falloff.cpp
+++ b/source/blender/blenkernel/intern/falloff.cpp
@@ -6,6 +6,14 @@ Falloff::~Falloff()
 {
 }
 
+ConstantFalloff::~ConstantFalloff()
+{
+}
+
+PointDistanceFalloff::~PointDistanceFalloff()
+{
+}
+
 void ConstantFalloff::compute(AttributesRef UNUSED(attributes),
                               ArrayRef<uint> indices,
                               MutableArrayRef<float> r_weights) const



More information about the Bf-blender-cvs mailing list