[Bf-blender-cvs] [07c6011b571] blender2.8: Depsgraph: Add extra information to debug logging

Sergey Sharybin noreply at git.blender.org
Thu Jul 13 15:24:42 CEST 2017


Commit: 07c6011b571bd49d2fe8a3af547f37487af7f054
Author: Sergey Sharybin
Date:   Thu Jul 13 13:02:13 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB07c6011b571bd49d2fe8a3af547f37487af7f054

Depsgraph: Add extra information to debug logging

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

M	source/blender/blenkernel/intern/layer.c

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

diff --git a/source/blender/blenkernel/intern/layer.c b/source/blender/blenkernel/intern/layer.c
index 78954e56f8c..6d131810216 100644
--- a/source/blender/blenkernel/intern/layer.c
+++ b/source/blender/blenkernel/intern/layer.c
@@ -1742,7 +1742,7 @@ static void idproperty_reset(IDProperty **props, IDProperty *props_ref)
 void BKE_layer_eval_layer_collection_pre(struct EvaluationContext *UNUSED(eval_ctx),
                                          Scene *scene, SceneLayer *scene_layer)
 {
-	DEBUG_PRINT("%s on %s\n", __func__, scene_layer->name);
+	DEBUG_PRINT("%s on %s (%p)\n", __func__, scene_layer->name, scene_layer);
 	for (Base *base = scene_layer->object_bases.first; base != NULL; base = base->next) {
 		base->flag &= ~(BASE_VISIBLED | BASE_SELECTABLED);
 		idproperty_reset(&base->collection_properties, scene->collection_properties);
@@ -1760,10 +1760,12 @@ void BKE_layer_eval_layer_collection(struct EvaluationContext *UNUSED(eval_ctx),
                                      LayerCollection *layer_collection,
                                      LayerCollection *parent_layer_collection)
 {
-	DEBUG_PRINT("%s on %s, parent %s\n",
+	DEBUG_PRINT("%s on %s (%p), parent %s (%p)\n",
 	            __func__,
 	            layer_collection->scene_collection->name,
-	            (parent_layer_collection != NULL) ? parent_layer_collection->scene_collection->name : "NONE");
+	            layer_collection->scene_collection,
+	            (parent_layer_collection != NULL) ? parent_layer_collection->scene_collection->name : "NONE",
+	            (parent_layer_collection != NULL) ? parent_layer_collection->scene_collection : NULL);
 
 	/* visibility */
 	layer_collection->flag_evaluated = layer_collection->flag;
@@ -1804,7 +1806,7 @@ void BKE_layer_eval_layer_collection(struct EvaluationContext *UNUSED(eval_ctx),
 void BKE_layer_eval_layer_collection_post(struct EvaluationContext *UNUSED(eval_ctx),
                                           SceneLayer *scene_layer)
 {
-	DEBUG_PRINT("%s on %s\n", __func__, scene_layer->name);
+	DEBUG_PRINT("%s on %s (%p)\n", __func__, scene_layer->name, scene_layer);
 	/* if base is not selectabled, clear select */
 	for (Base *base = scene_layer->object_bases.first; base; base = base->next) {
 		if ((base->flag & BASE_SELECTABLED) == 0) {




More information about the Bf-blender-cvs mailing list