diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-09 12:13:42 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-02-09 12:14:08 +0300 |
commit | 07ccb8b97c71eff0cbf1da4465fef5c46cd6d58f (patch) | |
tree | dfdc86687beabb7bf388e8abf0ddcd94edbabc18 /source | |
parent | 8f9386596fb0471c972921e6543b3a0adc3ffb3d (diff) |
Fix crash with font on curve
Was a mistake from recent texspace changes.
Reported by Pablo here in the studio!
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index a314cc0a131..5545eba8764 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -1080,8 +1080,13 @@ makebreak: float distfac, imat[4][4], imat3[3][3], cmat[3][3]; float minx, maxx, miny, maxy; float timeofs, sizefac; - - invert_m4_m4(imat, ob->obmat); + + if (ob != NULL) { + invert_m4_m4(imat, ob->obmat); + } + else { + unit_m4(imat); + } copy_m3_m4(imat3, imat); copy_m3_m4(cmat, cu->textoncurve->obmat); |