Bugfix for paint cursor not showing up in paint/sculpt modes

after saving the file in that mode and reloading.
This commit is contained in:
Brecht Van Lommel
2009-10-20 19:52:31 +00:00
parent f22872dded
commit f8d3f0582d

View File

@@ -4232,8 +4232,10 @@ static void link_recurs_seq(FileData *fd, ListBase *lb)
static void direct_link_paint(FileData *fd, Paint **paint)
{
(*paint)= newdataadr(fd, (*paint));
if(*paint)
if(*paint) {
(*paint)->paint_cursor= NULL;
(*paint)->brushes= newdataadr(fd, (*paint)->brushes);
}
}
static void direct_link_scene(FileData *fd, Scene *sce)