diff options
author | Ton Roosendaal <ton@blender.org> | 2006-09-18 19:32:11 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-09-18 19:32:11 +0400 |
commit | ab2c57a29d3c4b6f61e2a342fc801959eaa54768 (patch) | |
tree | bf5405084f14b0bc55c66ae2d06c2996c53b0215 | |
parent | 7494a3c96617d00a5aa28246cfa117f1a906ce03 (diff) |
Maximum amount of keys in a ColorBand now is 32.
This is static array stuff... could be dynamic once.
-rw-r--r-- | source/blender/blenkernel/BKE_texture.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_texture_types.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_texture.h b/source/blender/blenkernel/BKE_texture.h index a34ef43cab7..83229ec35a2 100644 --- a/source/blender/blenkernel/BKE_texture.h +++ b/source/blender/blenkernel/BKE_texture.h @@ -44,7 +44,7 @@ struct TexMapping; struct EnvMap; /* in ColorBand struct */ -#define MAXCOLORBAND 16 +#define MAXCOLORBAND 32 void free_texture(struct Tex *t); diff --git a/source/blender/makesdna/DNA_texture_types.h b/source/blender/makesdna/DNA_texture_types.h index e4d59687cfa..b93276624d5 100644 --- a/source/blender/makesdna/DNA_texture_types.h +++ b/source/blender/makesdna/DNA_texture_types.h @@ -101,9 +101,10 @@ typedef struct CBData { int cur; } CBData; +/* 32 = MAXCOLORBAND */ typedef struct ColorBand { short flag, tot, cur, ipotype; - CBData data[16]; + CBData data[32]; } ColorBand; |