Bugfix: (discovered by course participant :)
authorTon Roosendaal <ton@blender.org>
Tue, 26 May 2009 08:30:28 +0000 (08:30 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 26 May 2009 08:30:28 +0000 (08:30 +0000)
Brush option "Clone" didn't read linked Clone Image from file.
No idea how this ever could work even... even for Undo it
would crash.

source/blender/blenloader/intern/readfile.c

index abfb8ebd04ca4d0baa6a71e298d2efb84613f5cc..a99cb86f86ba74f6f48e517886aaa31be0cb64b1 100644 (file)
@@ -1459,6 +1459,8 @@ static void lib_link_brush(FileData *fd, Main *main)
                if(brush->id.flag & LIB_NEEDLINK) {
                        brush->id.flag -= LIB_NEEDLINK;
 
+                       brush->clone.image= newlibadr_us(fd, brush->id.lib, brush->clone.image);
+                       
                        for(a=0; a<MAX_MTEX; a++) {
                                mtex= brush->mtex[a];
                                if(mtex)