diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-08-12 08:03:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-08-12 08:03:00 +0400 |
commit | a05b147cecb9a277f0d4293373abff56796323db (patch) | |
tree | 813c90198375563ce0118e34ddb5cc14350432d7 | |
parent | d1ba0d2176f484d567ca9c099a9ca264641c9fc9 (diff) |
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.
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index bb18453fe99..c829c33ec3e 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -69,6 +69,9 @@ struct rctf; #include "BKE_idprop.h" #include "BKE_object.h" +#include "BKE_displist.h" + + #include "BSE_editipo.h" #include "BSE_edit.h" @@ -1569,8 +1572,11 @@ static PyObject *Object_makeDisplayList( BPy_Object * self ) { 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); |