From 2ca81ba8cc0ea502682db1b47c101e338d333ca2 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 5 Jul 2006 20:30:44 +0000 Subject: [PATCH] Bug from own testing (yeah, writing logs means finding bugs!) The Curve widget flag 'premultiply' should be cleared on read. This could lead to an occasional crash... --- source/blender/blenloader/intern/readfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 6f154ce587f..b23dc86a74f 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -1189,6 +1189,9 @@ static void direct_link_curvemapping(FileData *fd, CurveMapping *cumap) { int a; + /* flag seems to be able to hang? Maybe old files... not bad to clear anyway */ + cumap->flag &= ~CUMA_PREMULLED; + for(a=0; acm[a].curve= newdataadr(fd, cumap->cm[a].curve); cumap->cm[a].table= NULL;