diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-08-12 10:14:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-08-12 10:14:33 +0400 |
commit | fb985daf0176360740984ac59fac33cb80ce12a3 (patch) | |
tree | 9ab2085af1c221cbb99fc916114a0a87a530040c /source/blender/python/api2_2x/Object.c | |
parent | 0d5f195ba772b4796cf6d002a19a9107c8fd726b (diff) |
move mesh_vgroup_average to the weightpaint menu and rename. also added an option to add the active weight group or all groups.
- fix from 2.44 so makeDisplayList updates 3d text
Diffstat (limited to 'source/blender/python/api2_2x/Object.c')
-rw-r--r-- | source/blender/python/api2_2x/Object.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index 0620b156a0f..73d30aa6ed3 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -70,6 +70,7 @@ struct rctf; #include "BKE_idprop.h" #include "BKE_object.h" #include "BKE_key.h" /* for setting the activeShape */ +#include "BKE_displist.h" #include "BSE_editipo.h" #include "BSE_edit.h" @@ -1556,8 +1557,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); |