diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2011-01-18 07:08:01 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2011-01-18 07:08:01 +0300 |
commit | c2a638a81e93f3183b3fdec2652aff1d2bde9ac9 (patch) | |
tree | 0c8a3262a73f0386802f758e89820d764ab02fc0 /source/blender/makesdna | |
parent | 2431e8e045f9fee8454ecd97f287d0e171b1ee94 (diff) |
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.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_ID.h | 10 |
1 files changed, 5 insertions, 5 deletions
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; /** |