fix [#28846] Relative paths on linked scene fails
[blender.git] / source / blender / blenkernel / intern / displist.c
index acc900d0b71cdf8711fcdc57f60fe816758662f6..6704d06be522c6fa4a41eb8b7b732d397426d8cd 100644 (file)
@@ -1207,7 +1207,7 @@ static void do_makeDispListCurveTypes(Scene *scene, Object *ob, ListBase *dispba
                if(cu->path) free_path(cu->path);
                cu->path= NULL;
 
-               if(ob->type==OB_FONT) BKE_text_to_curve(scene, ob, 0);
+               if(ob->type==OB_FONT) BKE_text_to_curve(G.main, scene, ob, 0);
 
                if(!forOrco) curve_calc_modifiers_pre(scene, ob, forRender, &originalVerts, &deformedVerts, &numVerts);