[Bf-blender-cvs] [5e3d35c] depsgraph_refactor: Construct more useful name strings for IDDepsNodes.

Lukas Tönne noreply at git.blender.org
Wed Apr 16 10:26:40 CEST 2014


Commit: 5e3d35c5d38a74ac8067d1c81501eb4cecc40a12
Author: Lukas Tönne
Date:   Wed Apr 16 09:43:53 2014 +0200
https://developer.blender.org/rB5e3d35c5d38a74ac8067d1c81501eb4cecc40a12

Construct more useful name strings for IDDepsNodes.

===================================================================

M	source/blender/depsgraph/intern/depsgraph_build.cpp

===================================================================

diff --git a/source/blender/depsgraph/intern/depsgraph_build.cpp b/source/blender/depsgraph/intern/depsgraph_build.cpp
index 386fe97..0727e25 100644
--- a/source/blender/depsgraph/intern/depsgraph_build.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_build.cpp
@@ -66,6 +66,7 @@ extern "C" {
 #include "BKE_effect.h"
 #include "BKE_fcurve.h"
 #include "BKE_group.h"
+#include "BKE_idcode.h"
 #include "BKE_key.h"
 #include "BKE_library.h"
 #include "BKE_main.h"
@@ -175,7 +176,8 @@ RootDepsNode *DepsgraphNodeBuilder::add_root_node()
 
 IDDepsNode *DepsgraphNodeBuilder::add_id_node(IDPtr id)
 {
-	return m_graph->add_id_node(id);
+	const char *idtype_name = BKE_idcode_to_name(GS(id->name));
+	return m_graph->add_id_node(id, string_format("%s [%s]", id->name+2, idtype_name));
 }
 
 TimeSourceDepsNode *DepsgraphNodeBuilder::add_time_source(IDPtr id)




More information about the Bf-blender-cvs mailing list