Fix a crash when a driver expression evaluates to NaN.

The debug logging statement was accessing a NULL pointer.
Also happens in 2.79.
This commit is contained in:
2018-09-16 09:06:21 +03:00
parent 1079da9deb
commit 9901679ce8

View File

@@ -601,7 +601,7 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna, ChannelDriver *driver, C
return (float)result;
}
else {
fprintf(stderr, "\tBPY_driver_eval() - driver '%s' evaluates to '%f'\n", dvar->name, result);
fprintf(stderr, "\tBPY_driver_eval() - driver '%s' evaluates to '%f'\n", driver->expression, result);
return 0.0f;
}
}