Fix segfault with bad setting in the Image node.
authorDiego Borghetti <bdiego@gmail.com>
Thu, 28 Feb 2008 20:26:00 +0000 (20:26 +0000)
committerDiego Borghetti <bdiego@gmail.com>
Thu, 28 Feb 2008 20:26:00 +0000 (20:26 +0000)
commit274543627a37712fb522612390116f43835abaae
tree38bf948881b40a7fe66decc4ba7910c1795cf7d3
parent5f3e8c3fb64146ca2f6dfdb4a39f7862210cafae
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.
source/blender/nodes/intern/CMP_nodes/CMP_image.c
source/blender/src/drawnode.c