diff options
author | Jacques Lucke <jacques@blender.org> | 2021-04-01 15:36:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-04-01 15:39:12 +0300 |
commit | b00727950c28c31563426ea3c8c745b2c67e042d (patch) | |
tree | 996da96008edf2bd7f38d2fad5ca48707b0274f0 /source/blender/makesdna | |
parent | 1bdceb813ccb9690e5746731038e7f0ce92ed134 (diff) |
Nodes: separate node name and display name in bNodeTreePath
Previously, `node_name` was rarely actually a name of a node. It is set
correctly as node name in `ED_node_tree_push`. However, later on it
was overwritten by the name of an id data block in `node_draw_space`.
Now, the node_name stays the name of the "parent" node. Whereas
display_name is the name that will be displayed in the breadcrumbs.
With this change, the `node_name` can be used to reconstruct the
actual path from the root node tree to the currently visible tree.
Differential Revision: https://developer.blender.org/D10874
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index c170e711756..59c93ba7590 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -1520,6 +1520,7 @@ typedef struct bNodeTreePath { /** MAX_NAME. */ char node_name[64]; + char display_name[64]; } bNodeTreePath; typedef struct SpaceNode { |