diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-03-21 13:25:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-03-21 13:25:21 +0300 |
commit | f9999f3445db47c41d2da538af3abc0ef25576c5 (patch) | |
tree | e8b3105e4fe71aeefcdc17bf0cd48840f57222df /source/blender | |
parent | 42ac4a3e7d118ce4bc86e2b5152db64829c9ec1c (diff) |
[#21692] Blender Crashes upon trying to view UV Test Grid (r27639)
fix for mistake in own commit when moving grid color func into its own file.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/image_gen.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image_gen.c b/source/blender/blenkernel/intern/image_gen.c index 86d07d70e64..2c4851b1835 100644 --- a/source/blender/blenkernel/intern/image_gen.c +++ b/source/blender/blenkernel/intern/image_gen.c @@ -72,6 +72,10 @@ void BKE_image_buf_fill_checker(unsigned char *rect, float *rect_float, int widt int checkerwidth= 32, dark= 1; int x, y; + + unsigned char *rect_orig= rect; + float *rect_float_orig= rect_float; + float h=0.0, hoffs=0.0, hue=0.0, s=0.9, v=0.9, r, g, b; @@ -104,7 +108,10 @@ void BKE_image_buf_fill_checker(unsigned char *rect, float *rect_float, int widt } } } - + + rect= rect_orig; + rect_float= rect_float_orig; + /* 2nd pass, colored + */ for(y= 0; y<height; y++) { hoffs= 0.125f * floorf(y / checkerwidth); |