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>2015-07-24 19:41:54 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-24 19:41:54 +0300
commit75f8f1907ae9f8526089f15941281e257135ecc8 (patch)
tree2654625854e88b55e3898b888cf8383b194cb449 /source/blender/nodes
parent33bd2c15971ba50bdb15414387bd26b1ef6a8ed0 (diff)
Experiment with setting proper socket name for debug pass
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_image.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_image.c b/source/blender/nodes/composite/nodes/node_composite_image.c
index 208c1f84387..21142900e20 100644
--- a/source/blender/nodes/composite/nodes/node_composite_image.c
+++ b/source/blender/nodes/composite/nodes/node_composite_image.c
@@ -39,6 +39,10 @@
#include "BKE_global.h"
#include "BKE_main.h"
+#ifdef WITH_CYCLES_DEBUG
+# include "RE_pipeline.h"
+#endif
+
/* **************** IMAGE (and RenderResult, multilayer image) ******************** */
static bNodeSocketTemplate cmp_node_rlayers_out[] = {
@@ -453,7 +457,11 @@ void node_cmp_rlayers_force_hidden_passes(bNode *node)
set_output_visible(node, passflag, RRES_OUT_SUBSURFACE_COLOR, SCE_PASS_SUBSURFACE_COLOR);
#ifdef WITH_CYCLES_DEBUG
- set_output_visible(node, passflag, RRES_OUT_DEBUG, SCE_PASS_DEBUG);
+ {
+ bNodeSocket *sock = BLI_findlink(&node->outputs, RRES_OUT_DEBUG);
+ set_output_visible(node, passflag, RRES_OUT_DEBUG, SCE_PASS_DEBUG);
+ strcpy(sock->name, RE_debug_pass_name_get(scene->r.debug_pass_type));
+ }
#endif
}