diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-19 18:10:37 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-10-19 18:10:37 +0400 |
commit | 652ea9ee303143a1bf5a457d1842c0878e36932f (patch) | |
tree | 321d338b91c973602a76f4069cd086f02da87a4c /source | |
parent | dd96bf6168b60639701dd0ff512806e3fe1b65d0 (diff) |
Fix #19627: previews in materials nodes were not cleared before re-render.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index 1a89de7e8d6..2776444c8a0 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -1198,6 +1198,8 @@ static void node_init_preview(bNode *node, int xsize, int ysize) node->preview->xsize= xsize; node->preview->ysize= ysize; } + else + memset(node->preview->rect, 0, 4*xsize + xsize*ysize*sizeof(float)*4); } void ntreeInitPreview(bNodeTree *ntree, int xsize, int ysize) |