blender-v3.6-release backports #109694

Merged
Philipp Oeser merged 19 commits from lichtwerk/blender:blender-v3.6-release into blender-v3.6-release 2023-07-04 13:55:25 +02:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 45bf61f131 - Show all commits

View File

@ -382,6 +382,10 @@ void RNA_def_property_array(PropertyRNA *prop, int length);
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[]);
void RNA_def_property_range(PropertyRNA *prop, double min, double max);
/**
* \param item: An array of enum properties terminated by null members.
* \warning take care not to reference stack memory as the reference to `item` is held by `prop`.
*/
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item);
void RNA_def_property_enum_native_type(PropertyRNA *prop, const char *native_enum_type);
void RNA_def_property_string_maxlength(PropertyRNA *prop, int maxlength);

View File

@ -2942,7 +2942,7 @@ static void rna_def_property(BlenderRNA *brna)
{
StructRNA *srna;
PropertyRNA *prop;
EnumPropertyItem dummy_prop_tags[] = {
static const EnumPropertyItem dummy_prop_tags[] = {
{0, NULL, 0, NULL, NULL},
};