fix for struct definition building with msvc2008 and some style cleanup.
[blender-staging.git] / source / blender / editors / sculpt_paint / paint_image_2d.c
index 921ef6c2879f7338c1fee9d3bc3ba1439199d276..90a2c8037c4fea4709cfef13754a3a2b18ad188a 100644 (file)
@@ -79,9 +79,9 @@ BLI_INLINE unsigned char f_to_char(const float val)
 } (void)0
 
 #define IMAPAINT_CHAR_RGB_TO_FLOAT(f, c)  {                                   \
-       (f)[0] = IMAPAINT_CHAR_TO_FLOAT((c)[0]);                                   \
-       (f)[1] = IMAPAINT_CHAR_TO_FLOAT((c)[1]);                                   \
-       (f)[2] = IMAPAINT_CHAR_TO_FLOAT((c)[2]);                                   \
+       (f)[0] = IMAPAINT_CHAR_TO_FLOAT((c)[0]);                                  \
+       (f)[1] = IMAPAINT_CHAR_TO_FLOAT((c)[1]);                                  \
+       (f)[2] = IMAPAINT_CHAR_TO_FLOAT((c)[2]);                                  \
 } (void)0
 
 #define IMAPAINT_FLOAT_RGB_COPY(a, b) copy_v3_v3(a, b)