From c2a638a81e93f3183b3fdec2652aff1d2bde9ac9 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 18 Jan 2011 04:08:01 +0000 Subject: More fixes for bug [#25649], Image editor paint icon missing until enter weight paint, hopefully fully fixed this time * The texture selector for brushes wasn't updating. Seems that preview images have two sizes, small (icon) and big, but it was only updating if the icon size was set to update. Now both are checked. * Also changed the previewimage arrays to use the already-existing PREVIEW_MIPMAPS define, makes it a little clearer what the arrays are for. --- source/blender/makesdna/DNA_ID.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index 83561766a3c..ce1c328a876 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -127,11 +127,11 @@ typedef struct Library { #define PREVIEW_MIPMAP_LARGE 1 typedef struct PreviewImage { - unsigned int w[2]; - unsigned int h[2]; - short changed[2]; - short changed_timestamp[2]; - unsigned int * rect[2]; + unsigned int w[PREVIEW_MIPMAPS]; + unsigned int h[PREVIEW_MIPMAPS]; + short changed[PREVIEW_MIPMAPS]; + short changed_timestamp[PREVIEW_MIPMAPS]; + unsigned int * rect[PREVIEW_MIPMAPS]; } PreviewImage; /** -- cgit v1.2.3