default values for options are now specified alongside their definitions
This commit is contained in:
@@ -26,11 +26,8 @@ static int
|
||||
depth_start(void *data, RenderState *state, PyObject *support) {
|
||||
PrimitiveDepth *self = (PrimitiveDepth *)data;
|
||||
|
||||
self->min = 0;
|
||||
if (!render_mode_parse_option(support, "min", "I", &(self->min)))
|
||||
return 1;
|
||||
|
||||
self->max = 127;
|
||||
if (!render_mode_parse_option(support, "max", "I", &(self->max)))
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user