[subset] don't segfault when --help-all is specified w/ instancing options.
This commit is contained in:
parent
c292e577ff
commit
1a51f71afd
|
@ -668,6 +668,10 @@ parse_instance (const char *name,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
subset_main_t *subset_main = (subset_main_t *) data;
|
subset_main_t *subset_main = (subset_main_t *) data;
|
||||||
|
if (!subset_main->face) {
|
||||||
|
// There is no face, which is needed to set up instancing. Skip parsing these options.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
char *s = strtok((char *) arg, "=");
|
char *s = strtok((char *) arg, "=");
|
||||||
while (s)
|
while (s)
|
||||||
|
|
Loading…
Reference in New Issue