diff options
author | Jacques Lucke <jacques@blender.org> | 2021-08-30 19:26:55 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-08-30 19:26:55 +0300 |
commit | af3f744b4162ec98489e047f3982e5aa3f56a8c8 (patch) | |
tree | 85b5d6d0c6b2674cfac48b7a299d9f0cf61bc08e /source/blender/nodes | |
parent | 171c3bd2b04084b04a691acfe7b2913b8602d56f (diff) |
Fix: add virtual destructor to base class
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/NOD_node_declaration.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_node_declaration.hh b/source/blender/nodes/NOD_node_declaration.hh index 9c461885859..52f4ac291d2 100644 --- a/source/blender/nodes/NOD_node_declaration.hh +++ b/source/blender/nodes/NOD_node_declaration.hh @@ -35,6 +35,8 @@ class SocketDeclaration { friend NodeDeclarationBuilder; public: + virtual ~SocketDeclaration() = default; + virtual bNodeSocket &build(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out) const = 0; virtual bool matches(const bNodeSocket &socket) const = 0; virtual bNodeSocket &update_or_build(bNodeTree &ntree, bNode &node, bNodeSocket &socket) const; |