Fix segfault with bad setting in the Image node.
commiteadf7bd0a0e99a6fe8a0346c14430713eecfa596
authorDiego Hernan Borghetti <bdiego@gmail.com>
Fri, 29 Feb 2008 20:01:19 +0000 (29 17:01 -0300)
committerDiego Hernan Borghetti <bdiego@gmail.com>
Fri, 29 Feb 2008 20:01:19 +0000 (29 17:01 -0300)
tree6a3c4e56fcd13b631789f75c882a8dfef2c86e8b
parentf7573eff4632cada8db5dfd1b8c5f73f4ec6a9f1
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.

Signed-off-by: Diego Hernan Borghetti <bdiego@gmail.com>
source/blender/nodes/intern/CMP_nodes/CMP_image.c
source/blender/src/drawnode.c