Fix crash in T56064: Blender crashes on selecting text-object.

The root of the issue remains though, see T56172, this is just a quick
bandaid to stop crashing on it, until we find a proper solution.
This commit is contained in:
Bastien Montagne 2018-10-09 11:07:58 +02:00
parent 9560fe60e4
commit 2471b9c528
1 changed files with 1 additions and 1 deletions

View File

@ -1118,7 +1118,7 @@ makebreak:
/* Note: Only OB_CURVE objects could have a path */
if (cu->textoncurve && cu->textoncurve->type == OB_CURVE) {
BLI_assert(cu->textoncurve->runtime.curve_cache != NULL);
if (cu->textoncurve->runtime.curve_cache->path) {
if (cu->textoncurve->runtime.curve_cache != NULL && cu->textoncurve->runtime.curve_cache->path != NULL) {
float distfac, imat[4][4], imat3[3][3], cmat[3][3];
float minx, maxx, miny, maxy;
float timeofs, sizefac;