diff options
author | Jacques Lucke <jacques@blender.org> | 2022-04-14 17:31:09 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-04-14 17:31:09 +0300 |
commit | c71013082d096968d33ba977a0fdbcfbfb0690d1 (patch) | |
tree | df09bab6e0405ab79779fe74a21991381ed137e6 /source/blender/nodes/NOD_geometry_exec.hh | |
parent | a9b94e5f81ced89381033fd8d13ef6e3489e2665 (diff) |
Geometry Nodes: show used named attributes in nodes
This adds a new node editor overlay that helps users to see where
named attributes are used. This is important, because named
attributes can have name collisions between independent node
groups which can lead to hard to find issues.
Differential Revision: https://developer.blender.org/D14618
Diffstat (limited to 'source/blender/nodes/NOD_geometry_exec.hh')
-rw-r--r-- | source/blender/nodes/NOD_geometry_exec.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_geometry_exec.hh b/source/blender/nodes/NOD_geometry_exec.hh index 96a1904abdd..bac4d0165e9 100644 --- a/source/blender/nodes/NOD_geometry_exec.hh +++ b/source/blender/nodes/NOD_geometry_exec.hh @@ -40,6 +40,7 @@ using fn::FieldInput; using fn::FieldOperation; using fn::GField; using fn::ValueOrField; +using geometry_nodes_eval_log::NamedAttributeUsage; using geometry_nodes_eval_log::NodeWarningType; /** @@ -342,6 +343,8 @@ class GeoNodeExecParams { void set_default_remaining_outputs(); + void used_named_attribute(std::string attribute_name, NamedAttributeUsage usage); + private: /* Utilities for detecting common errors at when using this class. */ void check_input_access(StringRef identifier, const CPPType *requested_type = nullptr) const; |