Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-07-06 00:30:44 +0400
committerTon Roosendaal <ton@blender.org>2006-07-06 00:30:44 +0400
commit2ca81ba8cc0ea502682db1b47c101e338d333ca2 (patch)
tree58ae98b124ad6e2b8ef975f71474fa17b9d3c508 /source
parent64d0d62ddd2f9d320b0d221bfe4f13a973b8ed7b (diff)
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...
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/readfile.c3
1 files changed, 3 insertions, 0 deletions
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; a<CM_TOT; a++) {
cumap->cm[a].curve= newdataadr(fd, cumap->cm[a].curve);
cumap->cm[a].table= NULL;