Fix T99036: hex color in "Add Color Attribute"

Proposed solution by @scurest The color attribute in the RNA was tagged as
 COLOR_GAMMA. This change will change it to a regular COLOR.

{F13217692}

Reviewed By: joeedh, jbakker

Maniphest Tasks: T99036

Differential Revision: https://developer.blender.org/D15272
This commit is contained in:
Ramil Roosileht 2022-07-25 12:13:27 +02:00 committed by Jeroen Bakker
parent 6f1cdcba85
commit cf9dd3c0d8
Notes: blender-bot 2023-02-14 04:10:15 +01:00
Referenced by issue #99036, Add Color Attribute: hex colors don't work
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ void GEOMETRY_OT_color_attribute_add(wmOperatorType *ot)
prop = RNA_def_float_color(
ot->srna, "color", 4, nullptr, 0.0f, FLT_MAX, "Color", "Default fill color", 0.0f, 1.0f);
RNA_def_property_subtype(prop, PROP_COLOR_GAMMA);
RNA_def_property_subtype(prop, PROP_COLOR);
RNA_def_property_float_array_default(prop, default_color);
}