RNA: Make enum properties compatible with raw access.
This will allow to use foreach_get/set on enums of RNA collection items, which can save a lot of time in some cases (see incoming FBX updates).
This commit is contained in:
@@ -4386,8 +4386,8 @@ static int rna_raw_access(ReportList *reports,
|
||||
/* check type */
|
||||
itemtype = RNA_property_type(itemprop);
|
||||
|
||||
if (!ELEM(itemtype, PROP_BOOLEAN, PROP_INT, PROP_FLOAT)) {
|
||||
BKE_report(reports, RPT_ERROR, "Only boolean, int and float properties supported");
|
||||
if (!ELEM(itemtype, PROP_BOOLEAN, PROP_INT, PROP_FLOAT, PROP_ENUM)) {
|
||||
BKE_report(reports, RPT_ERROR, "Only boolean, int float and enum properties supported");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user