From 9e152f919f2f86cbe3530c6adc34373ebc703904 Mon Sep 17 00:00:00 2001 From: Miguel Porces Date: Sat, 16 Mar 2019 18:48:22 +0100 Subject: Python API: add Python-defined node groups for shaders and compositing. This was already supported for Cycles shader nodes, but now also works for Eevee and compositing nodes. Instead of a generic NodeCustomGroup, now there is ShaderNodeCustomGroup and CompositorNodeCustomGroup that can be subclassed and registered. Differential Revision: https://developer.blender.org/D4370 --- source/blender/compositor/intern/COM_NodeGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/compositor/intern') diff --git a/source/blender/compositor/intern/COM_NodeGraph.cpp b/source/blender/compositor/intern/COM_NodeGraph.cpp index ba0d225fdd7..f23b186416d 100644 --- a/source/blender/compositor/intern/COM_NodeGraph.cpp +++ b/source/blender/compositor/intern/COM_NodeGraph.cpp @@ -128,7 +128,7 @@ void NodeGraph::add_bNode(const CompositorContext &context, bNodeTree *b_ntree, } /* special node types */ - if (b_node->type == NODE_GROUP) { + if (ELEM(b_node->type, NODE_GROUP, NODE_CUSTOM_GROUP)) { add_proxies_group(context, b_node, key); } else if (b_node->type == NODE_REROUTE) { -- cgit v1.2.3