From 66e69965b15fa03634fcc741a4ec67e1e865cc83 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 12 Feb 2008 15:34:26 +0000 Subject: Bugfix: when defocus node had nothing to do and just passed on the buffer, it didn't correctly deal with pointers, gave a crash in some circumstances. --- source/blender/nodes/intern/CMP_nodes/CMP_defocus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/nodes') diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c index a7db8c2d53d..866bf406d1e 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_defocus.c @@ -779,9 +779,7 @@ static void node_composit_exec_defocus(void *data, bNode *node, bNodeStack **in, // if image not valid type or fstop==infinite (128), nothing to do, pass in to out if (((img->type!=CB_RGBA) && (img->type!=CB_VAL)) || ((nqd->no_zbuf==0) && (nqd->fstop==128.f))) { - new = alloc_compbuf(img->x, img->y, img->type, 0); - new->rect = img->rect; - out[0]->data = new; + out[0]->data = pass_on_compbuf(img); return; } -- cgit v1.2.3