Fix #114993: Experimental GP3 domain in list without Face Corner #115005
|
@ -80,6 +80,17 @@ const EnumPropertyItem *domain_experimental_grease_pencil_version3_fn(bContext *
|
|||
});
|
||||
}
|
||||
|
||||
const EnumPropertyItem *domain_without_corner_experimental_grease_pencil_version3_fn(
|
||||
bContext * /*C*/, PointerRNA * /*ptr*/, PropertyRNA * /*prop*/, bool *r_free)
|
||||
{
|
||||
*r_free = true;
|
||||
return enum_items_filter(
|
||||
rna_enum_attribute_domain_without_corner_items, [](const EnumPropertyItem &item) -> bool {
|
||||
return (item.value == ATTR_DOMAIN_LAYER) ? U.experimental.use_grease_pencil_version3 :
|
||||
true;
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace enums
|
||||
|
||||
} // namespace blender::nodes
|
||||
|
|
|
@ -133,6 +133,9 @@ const EnumPropertyItem *domain_experimental_grease_pencil_version3_fn(bContext *
|
|||
PropertyRNA * /*prop*/,
|
||||
bool *r_free);
|
||||
|
||||
const EnumPropertyItem *domain_without_corner_experimental_grease_pencil_version3_fn(
|
||||
bContext * /*C*/, PointerRNA * /*ptr*/, PropertyRNA * /*prop*/, bool *r_free);
|
||||
|
||||
} // namespace enums
|
||||
|
||||
} // namespace blender::nodes
|
||||
|
|
|
@ -363,7 +363,7 @@ static void node_rna(StructRNA *srna)
|
|||
rna_enum_attribute_domain_without_corner_items,
|
||||
NOD_inline_enum_accessors(custom1),
|
||||
ATTR_DOMAIN_POINT,
|
||||
enums::domain_experimental_grease_pencil_version3_fn);
|
||||
enums::domain_without_corner_experimental_grease_pencil_version3_fn);
|
||||
}
|
||||
|
||||
static void node_register()
|
||||
|
|
Loading…
Reference in New Issue