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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index d3bf136c529..06a0eb32a92 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1541,9 +1541,8 @@ static void lib_link_brush(FileData *fd, Main *main)
brush->mtex.tex= newlibadr_us(fd, brush->id.lib, brush->mtex.tex);
brush->clone.image= newlibadr_us(fd, brush->id.lib, brush->clone.image);
- // Image icons not saved if only used as an icon,
- // but if it used elsewhere in the file it will have been saved
- brush->image_icon= newlibadr_us(fd, brush->id.lib, brush->image_icon);
+ brush->preview=0;
+ brush->icon_imbuf=0;
}
}
}
@@ -10984,10 +10983,6 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
for (brush= main->brush.first; brush; brush= brush->id.next) {
/* Sanity Check */
- // brush icon loaded but not the path
- //if (brush->image_icon && !(brush->image_icon_path[0]))
- // BLI_strncpy(brush->image_icon_path, brush->image_icon->name, sizeof(brush->image_icon_path));
-
// infinite number of dabs
if (brush->spacing == 0)
brush->spacing = 10;