Fix (unreported) crash when accessing some bl_rna.properties.
E.g. typing `bpy.data.bl_rna.properties[8].<tab>` in console would hard-crash trying to dereference NULL pointer. Was a missing check in rna_Property_tags_itemf().
This commit is contained in:
parent
b3004d30f5
commit
601835cd31
|
@ -629,7 +629,7 @@ static const EnumPropertyItem *rna_Property_tags_itemf(
|
|||
int totitem = 0;
|
||||
|
||||
for (const EnumPropertyItem *struct_tags = RNA_struct_property_tag_defines(srna);
|
||||
struct_tags->identifier;
|
||||
struct_tags != NULL && struct_tags->identifier != NULL;
|
||||
struct_tags++)
|
||||
{
|
||||
memcpy(&tmp, struct_tags, sizeof(tmp));
|
||||
|
|
Loading…
Reference in New Issue