From 33fab0f7d7433e8d942c6eb448a14da05f1a22f2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 29 Sep 2010 06:24:05 +0000 Subject: fix for user counts with text3d bold/italic fonts. --- source/blender/blenloader/intern/readfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index bccbc451427..15b35d9b35d 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2735,7 +2735,7 @@ static void direct_link_curve(FileData *fd, Curve *cu) cu->strinfo= newdataadr(fd, cu->strinfo); cu->tb= newdataadr(fd, cu->tb); - if(cu->vfont==0) link_list(fd, &(cu->nurb)); + if(curve_type(cu) != OB_FONT) link_list(fd, &(cu->nurb)); else { cu->nurb.first=cu->nurb.last= 0; @@ -2766,7 +2766,7 @@ static void direct_link_curve(FileData *fd, Curve *cu) nu->bp= newdataadr(fd, nu->bp); nu->knotsu= newdataadr(fd, nu->knotsu); nu->knotsv= newdataadr(fd, nu->knotsv); - if (cu->vfont==0) nu->charidx= nu->mat_nr; + if (curve_type(cu) != OB_FONT) nu->charidx= nu->mat_nr; if(fd->flags & FD_FLAGS_SWITCH_ENDIAN) { switch_endian_knots(nu); -- cgit v1.2.3