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:
authorDiego Borghetti <bdiego@gmail.com>2010-07-08 23:29:41 +0400
committerDiego Borghetti <bdiego@gmail.com>2010-07-08 23:29:41 +0400
commita9050083fe649f2a5839aeba4cb0bd5ddbbc5c5e (patch)
tree75a84052875868e90c70c913d675019a2a34a849
parentb441a22bc8a4203a9eff220cffab030c4e7973f4 (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.
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_texture.c9
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);