Bugfix: (discovered by course participant :)

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.
This commit is contained in:
2009-05-26 08:30:28 +00:00
parent 7ba91ddcc3
commit ca4d741ce9

View 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)