Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Ramsay <smramsay>2021-10-30 14:39:41 +0300
committerJacques Lucke <mail@jlucke.com>2021-10-30 14:39:41 +0300
commit6722d41b292ae25b2ca90cc586d9b97c4b4821f7 (patch)
tree1d3266b94896cb3bacd18dd125822a6469502a66
parentbc8c44ea7abb9478896f311078e07eca8da461e6 (diff)
Node Wrangler: fix switch menu omitting entries after separators
Differential Revision: https://developer.blender.org/D13023
-rw-r--r--node_wrangler.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/node_wrangler.py b/node_wrangler.py
index 68573302..1cfb9bbd 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -43,7 +43,7 @@ from bpy.props import (
from bpy_extras.io_utils import ImportHelper, ExportHelper
from gpu_extras.batch import batch_for_shader
from mathutils import Vector
-from nodeitems_utils import node_categories_iter
+from nodeitems_utils import node_categories_iter, NodeItemCustom
from math import cos, sin, pi, hypot
from os import path
from glob import glob
@@ -4986,6 +4986,9 @@ def draw_switch_category_submenu(self, context):
props.to_type = node.nodetype
else:
for node in self.category.items(context):
+ if isinstance(node, NodeItemCustom):
+ node.draw(self, layout, context)
+ continue
props = layout.operator(NWSwitchNodeType.bl_idname, text=node.label)
props.geo_to_type = node.nodetype