[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11555] branches/2-44-stable/blender/ source/blender/python/api2_2x/Object.c: fix for bug #7038 ( Text3d Scriptlink updates values in UI, but not in render)
Campbell Barton
cbarton at metavr.com
Sun Aug 12 06:03:31 CEST 2007
Revision: 11555
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11555
Author: campbellbarton
Date: 2007-08-12 06:03:00 +0200 (Sun, 12 Aug 2007)
Log Message:
-----------
fix for bug #7038 (Text3d Scriptlink updates values in UI, but not in render)
https://projects.blender.org/tracker/index.php?func=detail&aid=7038&group_id=9&atid=125
somehow when rendering ob.makeDisplayList() wasnt recalculating the text.
Modified Paths:
--------------
branches/2-44-stable/blender/source/blender/python/api2_2x/Object.c
Modified: branches/2-44-stable/blender/source/blender/python/api2_2x/Object.c
===================================================================
--- branches/2-44-stable/blender/source/blender/python/api2_2x/Object.c 2007-08-12 01:38:12 UTC (rev 11554)
+++ branches/2-44-stable/blender/source/blender/python/api2_2x/Object.c 2007-08-12 04:03:00 UTC (rev 11555)
@@ -69,6 +69,9 @@
#include "BKE_idprop.h"
#include "BKE_object.h"
+#include "BKE_displist.h"
+
+
#include "BSE_editipo.h"
#include "BSE_edit.h"
@@ -1569,8 +1572,11 @@
{
Object *ob = self->object;
- if( ob->type == OB_FONT )
+ if( ob->type == OB_FONT ) {
+ Curve *cu = ob->data;
+ freedisplist( &cu->disp );
text_to_curve( ob, 0 );
+ }
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
More information about the Bf-blender-cvs
mailing list