diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-06-29 14:01:38 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-06-29 18:08:50 +0300 |
commit | 6b508eb012b929b34e893f71a785580562cc9a6a (patch) | |
tree | 37cd279a588e7b6f187163208af29466f2f3124d /source/blender/makesdna/DNA_space_types.h | |
parent | 6dd8ceef2a21f64cbb61a96560c50c162f9dae39 (diff) |
Spreadsheet: display byte colors as scene linear floats
The compression as sRGB is mostly an implementation detail and showing the
integers does not make it clear what the actual values are that will be used
for computations in geometry nodes. This follows the general convention that
colors in Blender are displayed and edited in scene linear floats.
The raw sRGB bytes can still be viewed as a tooltip.
Ref T99205
Differential Revision: https://developer.blender.org/D15322
Diffstat (limited to 'source/blender/makesdna/DNA_space_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 2905ef06833..2a5ca4c9541 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -1977,7 +1977,7 @@ typedef struct SpreadsheetRowFilter { float value_float2[2]; float value_float3[3]; float value_color[4]; - uint8_t value_byte_color[4]; + char _pad1[4]; } SpreadsheetRowFilter; typedef enum eSpaceSpreadsheet_RowFilterFlag { |