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:
authorHans Goudey <h.goudey@me.com>2021-01-09 01:28:53 +0300
committerHans Goudey <h.goudey@me.com>2021-01-09 01:29:10 +0300
commit69a22a70acff4d2f14d3c159a6319074de6af3bc (patch)
tree244447c882eb514d4b34ec784855b84bc384e00e /source/blender/modifiers
parent7fd19c20e01ce4c4d5fe4c4c5f534724cde8bebc (diff)
Geometry Nodes: Don't start with empty group nodes selected
The nodes were selected in new node groups because they are by default, but there's no particular reason for them to be selected, and it can be distracting.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 133a19dde9e..edd7cb9cfd1 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -754,6 +754,9 @@ void MOD_nodes_init(Main *bmain, NodesModifierData *nmd)
bNode *group_input_node = nodeAddStaticNode(nullptr, ntree, NODE_GROUP_INPUT);
bNode *group_output_node = nodeAddStaticNode(nullptr, ntree, NODE_GROUP_OUTPUT);
+ nodeSetSelected(group_input_node, false);
+ nodeSetSelected(group_output_node, false);
+
group_input_node->locx = -200 - group_input_node->width;
group_output_node->locx = 200;
group_output_node->flag |= NODE_DO_OUTPUT;