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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-09-24 16:40:23 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-09-24 16:55:02 +0300
commit65c71fc41097338885317e590ad759e0ebf20d03 (patch)
treecd093d5cfbd0587a22ae85ceedb449551a8ae2eb /source/blender
parent8008cdac2ec52151cc39660c5393936f08cfe51e (diff)
Depsgraph: Provide more information about component
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/depsgraph/intern/nodes/deg_node_component.cc6
-rw-r--r--source/blender/depsgraph/intern/nodes/deg_node_component.h2
2 files changed, 6 insertions, 2 deletions
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.