[Bf-blender-cvs] [af3f744b416] master: Fix: add virtual destructor to base class
Jacques Lucke
noreply at git.blender.org
Mon Aug 30 18:27:03 CEST 2021
Commit: af3f744b4162ec98489e047f3982e5aa3f56a8c8
Author: Jacques Lucke
Date: Mon Aug 30 18:26:55 2021 +0200
Branches: master
https://developer.blender.org/rBaf3f744b4162ec98489e047f3982e5aa3f56a8c8
Fix: add virtual destructor to base class
===================================================================
M source/blender/nodes/NOD_node_declaration.hh
===================================================================
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;
More information about the Bf-blender-cvs
mailing list