[Bf-blender-cvs] [65c71fc4109] blender2.8: Depsgraph: Provide more information about component
Sergey Sharybin
noreply at git.blender.org
Mon Sep 24 15:58:50 CEST 2018
Commit: 65c71fc41097338885317e590ad759e0ebf20d03
Author: Sergey Sharybin
Date: Mon Sep 24 15:40:23 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB65c71fc41097338885317e590ad759e0ebf20d03
Depsgraph: Provide more information about component
===================================================================
M source/blender/depsgraph/intern/nodes/deg_node_component.cc
M source/blender/depsgraph/intern/nodes/deg_node_component.h
===================================================================
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.
More information about the Bf-blender-cvs
mailing list