diff options
author | Miguel Porces <cmporces> | 2019-03-16 20:48:22 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-16 22:36:35 +0300 |
commit | 9e152f919f2f86cbe3530c6adc34373ebc703904 (patch) | |
tree | e3434b83601c03e659b4a1bfd4ae5027f58fa3f5 /release | |
parent | 5797a5fc65c87b69460d910a82d219b5e3ea12ad (diff) |
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
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/nodeitems_builtins.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/nodeitems_builtins.py b/release/scripts/startup/nodeitems_builtins.py index 99df0167557..60772062dcf 100644 --- a/release/scripts/startup/nodeitems_builtins.py +++ b/release/scripts/startup/nodeitems_builtins.py @@ -99,7 +99,9 @@ def node_group_items(context): # filter out recursive groups if contains_group(group, ntree): continue - + # filter out hidden nodetrees + if group.name.startswith('.'): + continue yield NodeItem(node_tree_group_type[group.bl_idname], group.name, {"node_tree": "bpy.data.node_groups[%r]" % group.name}) |