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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user