Blender Git Commit Log

Git Commits -> Revision 6445caa

Revision 6445caa by Campbell Barton (master)
October 28, 2020, 03:04 (GMT)
BLI_args: disallow zero to be used as a pass value

Introduced recently in 09139e41ed4ea.
While this worked in the cases it was used, '--threads' for example
was failing to parse the number when it's pass was set to 0.

Increase the enum values to start at 1 &
add asserts so this wont happen again.

Commit Details:

Full Hash: 6445caa9b55cea365da7ace5de006e950746064b
Parent Commit: c518cd7
Lines Changed: +10, -5

2 Modified Paths:

/source/blender/blenlib/intern/BLI_args.c (+5, -0) (Diff)
/source/creator/creator_intern.h (+5, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021