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-07-23 00:53:35 +0300
committerHans Goudey <h.goudey@me.com>2021-07-23 00:53:35 +0300
commit49e68f15f204a18a1c983cacf535d3315d742732 (patch)
tree41018ad9fded96a15d76c311e51876577339dcd0 /source/blender/nodes/NOD_geometry_nodes_eval_log.hh
parentf76dfe8fb45c9c270c295ff76f6fd058e2b64d0d (diff)
Geometry Nodes: Display Node Warnings in Modifier
With this commit, node warnings added to nodes during evaluation (not "Info" warnings) will also draw in the modifier. In the future there could be a "search for this node" button as well. Differential Revision: https://developer.blender.org/D11983
Diffstat (limited to 'source/blender/nodes/NOD_geometry_nodes_eval_log.hh')
-rw-r--r--source/blender/nodes/NOD_geometry_nodes_eval_log.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_geometry_nodes_eval_log.hh b/source/blender/nodes/NOD_geometry_nodes_eval_log.hh
index b85862a0176..00d97b24646 100644
--- a/source/blender/nodes/NOD_geometry_nodes_eval_log.hh
+++ b/source/blender/nodes/NOD_geometry_nodes_eval_log.hh
@@ -31,6 +31,7 @@
*/
#include "BLI_enumerable_thread_specific.hh"
+#include "BLI_function_ref.hh"
#include "BLI_linear_allocator.hh"
#include "BLI_map.hh"
@@ -267,6 +268,7 @@ class TreeLog {
const NodeLog *lookup_node_log(StringRef node_name) const;
const NodeLog *lookup_node_log(const bNode &node) const;
const TreeLog *lookup_child_log(StringRef node_name) const;
+ void foreach_node_log(FunctionRef<void(const NodeLog &)> fn) const;
};
/** Contains information about an entire geometry nodes evaluation. */
@@ -296,6 +298,7 @@ class ModifierLog {
const bNodeSocket &socket);
static const NodeLog *find_node_by_spreadsheet_editor_context(
const SpaceSpreadsheet &sspreadsheet);
+ void foreach_node_log(FunctionRef<void(const NodeLog &)> fn) const;
private:
using LogByTreeContext = Map<const DTreeContext *, TreeLog *>;