Fix T102316: blank color-space menu drop-downs
Regression in [0] needs further investigation
(building docs may crash again).
This effectively reverts [0], however de-duplicating the color-space
enum can be kept.
[0]: 037b771e1a
This commit is contained in:
parent
25c6444bad
commit
186f16e84c
Notes:
blender-bot
2023-02-14 04:56:36 +01:00
Referenced by issue #102316, Regression: 037b771e1a
causes colorspace menu dropdowns to be blank.
|
@ -579,9 +579,13 @@ static void rna_ColorManagedColorspaceSettings_colorspace_set(struct PointerRNA
|
|||
static const EnumPropertyItem *rna_ColorManagedColorspaceSettings_colorspace_itemf(
|
||||
bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
|
||||
{
|
||||
# if 0 /* FIXME: Causes blank drop-down, see T102316. */
|
||||
if (C == NULL) {
|
||||
return rna_enum_color_space_convert_default_items;
|
||||
}
|
||||
# else
|
||||
UNUSED_VARS(C);
|
||||
# endif
|
||||
EnumPropertyItem *items = NULL;
|
||||
int totitem = 0;
|
||||
|
||||
|
|
|
@ -4502,9 +4502,13 @@ static void rna_NodeConvertColorSpace_to_color_space_set(struct PointerRNA *ptr,
|
|||
static const EnumPropertyItem *rna_NodeConvertColorSpace_color_space_itemf(
|
||||
bContext *C, PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free)
|
||||
{
|
||||
# if 0 /* FIXME: Causes blank drop-down, see T102316. */
|
||||
if (C == NULL) {
|
||||
return rna_enum_color_space_convert_default_items;
|
||||
}
|
||||
# else
|
||||
UNUSED_VARS(C);
|
||||
# endif
|
||||
EnumPropertyItem *items = NULL;
|
||||
int totitem = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue