Blender Git Commit Log

Git Commits -> Revision 461d4fc

Revision 461d4fc by Hans Goudey (master)
February 16, 2021, 23:15 (GMT)
Geometry Nodes: Node error messages

This patch adds icons to the right side of nodes when they encounter a
a problem. When hovered, a tooltip displays describing the encountered
while evaluating the node.

Some examples are: attribute doesn't exist, mesh has no faces,
incorrect attribute type, etc. Exposing more messages to the system
will be an ongoing process. Multiple warnings per node are supported.

The system is implemented somewhat generically so that the basic
structure can also be used to store more information from evaluation
for the interface, like a list of available attributes.

Currently the messages are just button tooltips. They could be styled
differently in the future. Another limitation is that every instance of
a node group in a parent node tree will have the same error messages,
the "evaluation context" used to decide when to display the tooltips
must be extended to support node tree paths.

Differential Revision: https://developer.blender.org/D10290

Commit Details:

Full Hash: 461d4fc1aae200a6310a254b6e7c08070d9e94a7
Parent Commit: c9c4802
Lines Changed: +447, -7

2 Added Paths:

/source/blender/blenkernel/BKE_node_ui_storage.hh (+95, -0) (View)
/source/blender/blenkernel/intern/node_ui_storage.cc (+104, -0) (View)

10 Modified Paths:

/source/blender/blenkernel/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+10, -0) (Diff)
/source/blender/editors/space_node/node_draw.cc (+144, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+3, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+28, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_randomize.cc (+2, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc (+3, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc (+6, -0) (Diff)
/source/blender/nodes/intern/node_geometry_exec.cc (+36, -1) (Diff)
/source/blender/nodes/NOD_geometry_exec.hh (+15, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021