diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-10-09 12:07:58 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-10-09 12:35:21 +0300 |
commit | 2471b9c528b291a7b373d6c94d2beb45980b0afe (patch) | |
tree | 6378e4f17f43291ee008cf1cf78e75682fd8800c /source/blender/blenkernel/intern/font.c | |
parent | 9560fe60e42d4fe098a24c17f31b6313eaae3364 (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern/font.c')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index b81d633f156..51ab82fd593 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -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; |