diff options
author | Diego Borghetti <bdiego@gmail.com> | 2010-07-08 23:29:41 +0400 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2010-07-08 23:29:41 +0400 |
commit | a9050083fe649f2a5839aeba4cb0bd5ddbbc5c5e (patch) | |
tree | 75a84052875868e90c70c913d675019a2a34a849 /source/blender/nodes/intern/CMP_nodes | |
parent | b441a22bc8a4203a9eff220cffab030c4e7973f4 (diff) |
Fix Texture node don't take care render size.
The texture node was not taking into account the precentage of the
render when create the output buffer.
Reported by venomgfx at irc.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_texture.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_texture.c b/source/blender/nodes/intern/CMP_nodes/CMP_texture.c index b130b3f38a8..f990fa452cb 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_texture.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_texture.c @@ -95,10 +95,11 @@ static void node_composit_exec_texture(void *data, bNode *node, bNodeStack **in, /* first make the preview image */ CompBuf *prevbuf= alloc_compbuf(140, 140, CB_RGBA, 1); /* alloc */ - - sizex = rd->xsch; - sizey = rd->ysch; - + + /* Also take care about the render size! */ + sizex = (rd->size*rd->xsch)/100; + sizey = (rd->size*rd->ysch)/100; + prevbuf->rect_procedural= texture_procedural; prevbuf->node= node; VECCOPY(prevbuf->procedural_offset, in[0]->vec); |