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:
authorCharlie Jolly <mistajolly@gmail.com>2021-12-31 04:15:00 +0300
committerCharlie Jolly <mistajolly@gmail.com>2021-12-31 04:15:00 +0300
commit0aa73156083821d45c7794ea964d7fd5e6d13b25 (patch)
treefc477f331d16f9ae6cf15025c1bd1d0b8134ea8a /source/blender/nodes/shader/nodes/node_shader_vector_math.cc
parentbf4358ed0c545a14686af0d91ab78d784b988def (diff)
Fix (unreported): remove menu separators from drag link search
Search was picking up the menu separator entries. Add check for these which are defined by empty identifier strings.
Diffstat (limited to 'source/blender/nodes/shader/nodes/node_shader_vector_math.cc')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_vector_math.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_vector_math.cc b/source/blender/nodes/shader/nodes/node_shader_vector_math.cc
index 312929abd0d..0218e759bea 100644
--- a/source/blender/nodes/shader/nodes/node_shader_vector_math.cc
+++ b/source/blender/nodes/shader/nodes/node_shader_vector_math.cc
@@ -66,7 +66,7 @@ static void sh_node_vector_math_gather_link_searches(GatherLinkSearchOpParams &p
for (const EnumPropertyItem *item = rna_enum_node_vec_math_items; item->identifier != nullptr;
item++) {
- if (item->name != nullptr) {
+ if (item->name != nullptr && item->identifier != "") {
if ((params.in_out() == SOCK_OUT) && ELEM(item->value,
NODE_VECTOR_MATH_LENGTH,
NODE_VECTOR_MATH_DISTANCE,