Added new render pass: "Mist".
[blender.git] / source / blender / blenkernel / intern / node.c
index ce14165a499199f409627c9716138ec2e3398f18..43a6f2091dec1879433ae883a316233e031d4341 100644 (file)
@@ -2211,6 +2211,8 @@ static void force_hidden_passes(bNode *node, int passflag)
        if(!(passflag & SCE_PASS_RADIO)) sock->flag |= SOCK_UNAVAIL;
        sock= BLI_findlink(&node->outputs, RRES_OUT_INDEXOB);
        if(!(passflag & SCE_PASS_INDEXOB)) sock->flag |= SOCK_UNAVAIL;
+       sock= BLI_findlink(&node->outputs, RRES_OUT_MIST);
+       if(!(passflag & SCE_PASS_MIST)) sock->flag |= SOCK_UNAVAIL;
        
 }