diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-04 21:35:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-04 21:35:17 +0400 |
commit | 143b7ec10a60f9a162124ef3f4e51b5b179648d4 (patch) | |
tree | 9760b63370dded9eacab7ecb1149c249c13786fe /source | |
parent | f4eb0f507f96eedae9f110aaaf46b5ef4ab40b6b (diff) |
remove unused SpaceTime.redraws.
now there are no more use of deprecated struct member warnings.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 | ||||
-rw-r--r-- | source/blender/editors/space_time/space_time.c | 1 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 12 |
3 files changed, 4 insertions, 14 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index b5baeab5d5f..1759fa67569 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -8709,11 +8709,6 @@ static void do_versions(FileData *fd, Library *lib, Main *main) View3D *v3d= (View3D *)sl; if(v3d->twtype==0) v3d->twtype= V3D_MANIP_TRANSLATE; } - else if(sl->spacetype==SPACE_TIME) { - SpaceTime *stime= (SpaceTime *)sl; - if(stime->redraws==0) - stime->redraws= TIME_ALL_3D_WIN|TIME_ALL_ANIM_WIN; - } } } } diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c index b3baccde5c9..65ef3273e30 100644 --- a/source/blender/editors/space_time/space_time.c +++ b/source/blender/editors/space_time/space_time.c @@ -580,7 +580,6 @@ static SpaceLink *time_new(const bContext *C) stime= MEM_callocN(sizeof(SpaceTime), "inittime"); stime->spacetype= SPACE_TIME; - stime->redraws= TIME_ALL_3D_WIN|TIME_ALL_ANIM_WIN; // XXX: depreceated stime->flag |= TIME_DRAWFRAMES; /* header */ diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 649b849ea5e..6bcea71b5e9 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -376,14 +376,11 @@ typedef struct SpaceTime { float blockscale DNA_DEPRECATED; View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ - + ListBase caches; - int cache_display, pad; - - int flag; - int redraws DNA_DEPRECATED; /* redraws is deprecated... moved to screen */ - + int cache_display; + int flag; } SpaceTime; typedef struct SpaceNode { @@ -397,9 +394,8 @@ typedef struct SpaceNode { View2D v2d DNA_DEPRECATED; /* deprecated, copied to region */ struct ID *id, *from; /* context, no need to save in file? well... pinning... */ - short flag, menunr; /* menunr: browse id block in header */ + short flag, pad1; /* menunr: browse id block in header */ float aspect; - void *curfont; float xof, yof; /* offset for drawing the backdrop */ float zoom, padf; /* zoom for backdrop */ |