Fix T99603: node body colors colormanagement issue
This led to the color actually looking different on the node body itself vs. in the panel, also using the colorpicker gave unexpected results. UI colors should use PROP_COLOR_GAMMA to avoid being affected by scene color management (clarification by @brecht). Maniphest Tasks: T99603 Differential Revision: https://developer.blender.org/D16334
This commit is contained in:
parent
c5ec667b69
commit
d2b74943ce
Notes:
blender-bot
2023-02-14 03:03:03 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #99603, Node color is different from color panel
|
@ -12122,7 +12122,7 @@ static void rna_def_node(BlenderRNA *brna)
|
|||
RNA_def_property_ui_text(prop, "Custom Color", "Use custom color for the node");
|
||||
RNA_def_property_update(prop, NC_NODE | ND_DISPLAY, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
|
||||
prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Color", "Custom color of the node body");
|
||||
|
|
Loading…
Reference in New Issue