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:
authorDaniel Genrich <daniel.genrich@gmx.net>2009-04-20 22:31:48 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2009-04-20 22:31:48 +0400
commit6afaab654d6d9df31f6cb01e8e2c834ae79927fb (patch)
tree4f932da7eaa82ca44a6a14654376d0f7ce161f69 /source/blender/nodes/intern/CMP_nodes/CMP_scale.c
parent449e9a454d5cc160014f25077bfdf7cd04a411c4 (diff)
Bugfix for [#18554] Time + Scale Node Crash
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_scale.c')
-rw-r--r--source/blender/nodes/intern/CMP_nodes/CMP_scale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_scale.c b/source/blender/nodes/intern/CMP_nodes/CMP_scale.c
index cc6f9249495..ee3607c11f6 100644
--- a/source/blender/nodes/intern/CMP_nodes/CMP_scale.c
+++ b/source/blender/nodes/intern/CMP_nodes/CMP_scale.c
@@ -65,8 +65,8 @@ static void node_composit_exec_scale(void *data, bNode *node, bNodeStack **in, b
newx = cbuf->x * (rd->size / 100.0f);
newy = cbuf->y * (rd->size / 100.0f);
} else { /* CMP_SCALE_ABSOLUTE */
- newx= (int)in[1]->vec[0];
- newy= (int)in[2]->vec[0];
+ newx= MAX2((int)in[1]->vec[0], 1);
+ newy= MAX2((int)in[2]->vec[0], 1);
}
newx= MIN2(newx, CMP_SCALE_MAX);
newy= MIN2(newy, CMP_SCALE_MAX);