diff options
author | OmarSquircleArt <omar.squircleart@gmail.com> | 2019-08-10 18:37:39 +0300 |
---|---|---|
committer | OmarSquircleArt <omar.squircleart@gmail.com> | 2019-08-10 18:57:54 +0300 |
commit | 26911ba1e26b90d7fafcd2e877a52c55181896c1 (patch) | |
tree | 4e6841485745c1f681dafe41c2ac478006b4763d /source/blender/makesdna/DNA_node_types.h | |
parent | f51f4355b92457879a1b5fc064bfc4385fa7f278 (diff) |
Nodes: Display vector values expanded, except when specified as compact.
Change the default drawing method of vector sockets to use a column layout.
This allows more interactive use of nodes and avoids the one or two clicks
needed to edit vector sockets in the old default component layout.
Developers may still use the component layout by flaging the socket with the
`SOCK_COMPACT` socket flag. For now, we choose to draw the SSS scale vector
of the Principled and SSS nodes in a compact form because they don't require
much interactivity.
Reviewers: brecht, JacquesLucke
Differential Revision: https://developer.blender.org/D5458
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 75c0721f72a..04a42cb146c 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -184,6 +184,8 @@ typedef enum eNodeSocketFlag { /** socket hidden automatically, to distinguish from manually hidden */ SOCK_AUTO_HIDDEN__DEPRECATED = (1 << 8), SOCK_NO_INTERNAL_LINK = (1 << 9), + /** Draw socket in a more compact form. */ + SOCK_COMPACT = (1 << 10), } eNodeSocketFlag; /* limit data in bNode to what we want to see saved? */ |