Commit: cf9dd3c0d8304cc8915f8b7d1f703e26e12c45f5
Author: Ramil Roosileht
Date: Mon Jul 25 12:13:27 2022 +0200
Branches: master
https://developer.blender.org/rBcf9dd3c0d8304cc8915f8b7d1f703e26e12c45f5
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
===================================================================
M source/blender/editors/geometry/geometry_attributes.cc
===================================================================
diff --git a/source/blender/editors/geometry/geometry_attributes.cc
b/source/blender/editors/geometry/geometry_attributes.cc
index 4cf14334ac7..a6a9b2fcd26 100644
--- a/source/blender/editors/geometry/geometry_attributes.cc
+++ b/source/blender/editors/geometry/geometry_attributes.cc
@@ -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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs