[Bf-blender-cvs] [2471b9c528b] blender2.8: Fix crash in T56064: Blender crashes on selecting text-object.

Bastien Montagne noreply at git.blender.org
Tue Oct 9 11:35:32 CEST 2018


Commit: 2471b9c528b291a7b373d6c94d2beb45980b0afe
Author: Bastien Montagne
Date:   Tue Oct 9 11:07:58 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB2471b9c528b291a7b373d6c94d2beb45980b0afe

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.

===================================================================

M	source/blender/blenkernel/intern/font.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list