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:
authorCampbell Barton <campbell@blender.org>2022-05-18 12:24:08 +0300
committerCampbell Barton <campbell@blender.org>2022-05-18 12:40:23 +0300
commitf937c186dedeec4ead1ead9c16646c4aaebafd1b (patch)
tree93c95ab5508580e0302d155839dc003922e25116 /source/blender/editors/space_node/node_intern.hh
parent3cd3a4abe331f734af2185d3a87c7c88bf72795b (diff)
Fix build error on WIN32 from `_bpy.context_members`
As of [0] which references context arrays from the Python API, C++ name mangling caused 'node_context_dir' not to be found for WIN32. [0]: c8edc458d13c0483907d0fe6f44f6e2887263b57
Diffstat (limited to 'source/blender/editors/space_node/node_intern.hh')
-rw-r--r--source/blender/editors/space_node/node_intern.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh
index 0c02af8a18e..924537d0e8a 100644
--- a/source/blender/editors/space_node/node_intern.hh
+++ b/source/blender/editors/space_node/node_intern.hh
@@ -31,7 +31,9 @@ struct wmKeyConfig;
struct wmWindow;
/* Outside of blender namespace to avoid Python documentation build error with `ctypes`. */
+extern "C" {
extern const char *node_context_dir[];
+};
namespace blender::ed::space_node {