Todo item: linked curve objects behaves incorrect with modifiers
[blender-staging.git] / source / blender / editors / space_info / info_stats.c
index 7a6e5dad017496df501f14be09b11d8c69ab10f5..b4185d1b958c9cd403fccb2d319a8569c98d1bec 100644 (file)
@@ -91,13 +91,12 @@ static void stats_object(Object *ob, int sel, int totob, SceneStats *stats)
        case OB_SURF:
        case OB_CURVE:
        case OB_FONT: {
-               Curve *cu= ob->data;
                int tot= 0, totf= 0;
 
                stats->totcurve += totob;
 
-               if(cu->disp.first)
-                       count_displist(&cu->disp, &tot, &totf);
+               if(ob->disp.first)
+                       count_displist(&ob->disp, &tot, &totf);
 
                tot *= totob;
                totf *= totob;