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>2008-02-28 23:26:00 +0300
committerDiego Borghetti <bdiego@gmail.com>2008-02-28 23:26:00 +0300
commit274543627a37712fb522612390116f43835abaae (patch)
tree38bf948881b40a7fe66decc4ba7910c1795cf7d3 /source/blender/src/drawnode.c
parent5f3e8c3fb64146ca2f6dfdb4a39f7862210cafae (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.c2
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");