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/space_node.cc
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/space_node.cc')
-rw-r--r--source/blender/editors/space_node/space_node.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/space_node.cc b/source/blender/editors/space_node/space_node.cc
index 348fb926d17..3963186f73b 100644
--- a/source/blender/editors/space_node/space_node.cc
+++ b/source/blender/editors/space_node/space_node.cc
@@ -826,8 +826,10 @@ static void node_region_listener(const wmRegionListenerParams *params)
} // namespace blender::ed::space_node
/* Outside of blender namespace to avoid Python documentation build error with `ctypes`. */
+extern "C" {
const char *node_context_dir[] = {
"selected_nodes", "active_node", "light", "material", "world", nullptr};
+};
namespace blender::ed::space_node {