diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-09-18 13:16:31 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-09-18 13:16:31 +0400 |
commit | e6271d236752b8551d8d401ff6aff8e92efde18e (patch) | |
tree | 82e76b140c3d8c123ce469c0c2277fdea3c4e881 /source/blender/makesdna/DNA_brush_types.h | |
parent | 90f75b8ce034068f0f8192e32d4b9a6d9261393f (diff) |
Palettes:
Avoid having an invalid active index if user deletes a color.
Also attempt to set active color on clicking (Not working yet but fix
coming soon)
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index 9fbd70419f4..b14861fcf47 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -153,8 +153,8 @@ typedef struct Palette ListBase colors; ListBase deleted; - int num_of_colours; int active_color; + int pad; } Palette; typedef struct PaintCurvePoint |