diff options
author | Diego Borghetti <bdiego@gmail.com> | 2008-02-28 23:26:00 +0300 |
---|---|---|
committer | Diego Borghetti <bdiego@gmail.com> | 2008-02-28 23:26:00 +0300 |
commit | 274543627a37712fb522612390116f43835abaae (patch) | |
tree | 38bf948881b40a7fe66decc4ba7910c1795cf7d3 /source/blender/src/drawnode.c | |
parent | 5f3e8c3fb64146ca2f6dfdb4a39f7862210cafae (diff) |
Fix segfault with bad setting in the Image node.
The limit in the UI tooltips to set the amount of
images used in animation allow the zero value,
that cause a segfault.
This commit fix the UI, add a init value of 1 to
the node and also check in case that
node_composit_get_image return NULL.
Diffstat (limited to 'source/blender/src/drawnode.c')
-rw-r--r-- | source/blender/src/drawnode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawnode.c b/source/blender/src/drawnode.c index b15f81e77ae..b8756defa65 100644 --- a/source/blender/src/drawnode.c +++ b/source/blender/src/drawnode.c @@ -1004,7 +1004,7 @@ static int node_composit_buts_image(uiBlock *block, bNodeTree *ntree, bNode *nod dy-= 19; uiDefButI(block, NUM, B_NODE_EXEC+node->nr, "Frs:", xmin, dy, width, 19, - &iuser->frames, 0.0, MAXFRAMEF, 0, 0, "Amount of images used in animation"); + &iuser->frames, 1.0, MAXFRAMEF, 0, 0, "Amount of images used in animation"); uiDefButI(block, NUM, B_NODE_EXEC+node->nr, "SFra:", xmin+width, dy, width, 19, &iuser->sfra, 1.0, MAXFRAMEF, 0, 0, "Start frame of animation"); |