diff options
author | Joseph Eagar <joeedh@gmail.com> | 2010-09-04 09:31:25 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2010-09-04 09:31:25 +0400 |
commit | bb7339a7aec37bdb2ee8a21599e6c65b37ef1277 (patch) | |
tree | 6fb8da94c6e43098c606f768e722484b04b8645c /source/blender/editors/space_info/info_stats.c | |
parent | 37f2c8a64c3277f100ab084ef1bb3846bc7b2c62 (diff) | |
parent | 8a320974f1b3e6004db3b3ad64f97742f878cbee (diff) |
merge with trunk at r31523
Diffstat (limited to 'source/blender/editors/space_info/info_stats.c')
-rw-r--r-- | source/blender/editors/space_info/info_stats.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_info/info_stats.c b/source/blender/editors/space_info/info_stats.c index 68058a5315d..7ffa68a9be1 100644 --- a/source/blender/editors/space_info/info_stats.c +++ b/source/blender/editors/space_info/info_stats.c @@ -35,7 +35,6 @@ #include "DNA_scene_types.h" #include "BKE_anim.h" -#include "BKE_context.h" #include "BKE_displist.h" #include "BKE_DerivedMesh.h" #include "BKE_key.h" @@ -46,6 +45,7 @@ #include "ED_armature.h" #include "ED_mesh.h" +#include "ED_curve.h" /* for ED_curve_editnurbs */ #include "BLI_editVert.h" @@ -178,8 +178,9 @@ static void stats_object_edit(Object *obedit, SceneStats *stats) BezTriple *bezt; BPoint *bp; int a; + ListBase *nurbs= ED_curve_editnurbs(cu); - for(nu=cu->editnurb->first; nu; nu=nu->next) { + for(nu=nurbs->first; nu; nu=nu->next) { if(nu->type == CU_BEZIER) { bezt= nu->bezt; a= nu->pntsu; @@ -215,7 +216,7 @@ static void stats_object_edit(Object *obedit, SceneStats *stats) else if(obedit->type==OB_LATTICE) { /* Lattice Edit */ Lattice *lt= obedit->data; - Lattice *editlatt= lt->editlatt; + Lattice *editlatt= lt->editlatt->latt; BPoint *bp; int a; |