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-06-09 17:13:09 +0300
committerHans Goudey <h.goudey@me.com>2021-06-09 17:13:09 +0300
commitec98bb318b938f829859ee7dfa1a96d1171c2a64 (patch)
tree8f6c55e5e39857c249611b2402667f4742ed8be9 /source/blender/makesdna
parent3a7ab62eac05e700372a2b17b901b0181be82abe (diff)
UI: Add the option to not display some socket labels
This commit adds a flag to disable displaying some socket labels which just redundant eye sores. We still want to have a label, because that information can potentially be accessed elsewhere in the UI. The flag is used in a few geometry nodes. Differential Revision: https://developer.blender.org/D11540
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_node_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h
index 1ab6c5e52a6..c005e1d52d2 100644
--- a/source/blender/makesdna/DNA_node_types.h
+++ b/source/blender/makesdna/DNA_node_types.h
@@ -210,6 +210,12 @@ typedef enum eNodeSocketFlag {
SOCK_COMPACT = (1 << 10),
/** Make the input socket accept multiple incoming links in the UI. */
SOCK_MULTI_INPUT = (1 << 11),
+ /**
+ * Don't show the socket's label in the interface, for situations where the type is obvious and
+ * the name takes up too much space. Note that it doesn't really make sense for this to be stored
+ * in runtime data.
+ */
+ SOCK_HIDE_LABEL = (1 << 12),
} eNodeSocketFlag;
/* limit data in bNode to what we want to see saved? */