From 65c71fc41097338885317e590ad759e0ebf20d03 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 24 Sep 2018 15:40:23 +0200 Subject: Depsgraph: Provide more information about component --- source/blender/depsgraph/intern/nodes/deg_node_component.cc | 6 +++++- source/blender/depsgraph/intern/nodes/deg_node_component.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender') diff --git a/source/blender/depsgraph/intern/nodes/deg_node_component.cc b/source/blender/depsgraph/intern/nodes/deg_node_component.cc index 494c823a4b1..9c7c8df1770 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node_component.cc +++ b/source/blender/depsgraph/intern/nodes/deg_node_component.cc @@ -158,7 +158,11 @@ string ComponentDepsNode::identifier() const char typebuf[16]; sprintf(typebuf, "(%d)", type); - return string(typebuf) + name + " : " + idname; + return string(typebuf) + name + " : " + idname + + "( affects_directly_visible: " + + (affects_directly_visible ? "true" + : "false") + ")"; +; } OperationDepsNode *ComponentDepsNode::find_operation(OperationIDKey key) const diff --git a/source/blender/depsgraph/intern/nodes/deg_node_component.h b/source/blender/depsgraph/intern/nodes/deg_node_component.h index 1cc4dd9797a..244884554fa 100644 --- a/source/blender/depsgraph/intern/nodes/deg_node_component.h +++ b/source/blender/depsgraph/intern/nodes/deg_node_component.h @@ -71,7 +71,7 @@ struct ComponentDepsNode : public DepsNode { void init(const ID *id, const char *subdata); - string identifier() const; + virtual string identifier() const; /* Find an existing operation, if requested operation does not exist * NULL will be returned. -- cgit v1.2.3