Fix #109024: Off-by-1 in rna_access for non-array props without raw access #115967

Open
Thomas Barlow wants to merge 4 commits from Mysteryem/blender:fix_109024_non_raw_non_array_off_by_one into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 55430e9666 - Show all commits

View File

@ -4622,7 +4622,7 @@ static int rna_raw_access(ReportList *reports,
/* Could also be faster with non-matching types,
* for now we just do slower loop. */
}
BLI_assert_msg(itemlen == 0 || itemtype != PROP_ENUM,
BLI_assert_msg(arraylen == 0 || itemtype != PROP_ENUM,
"Enum array properties should not exist");
}
@ -4668,7 +4668,7 @@ static int rna_raw_access(ReportList *reports,
err = 1;
break;
}
BLI_assert_msg(itemlen == 0 || itemtype != PROP_ENUM,
BLI_assert_msg(arraylen == 0 || itemtype != PROP_ENUM,
"Enum array properties should not exist");
}