diff options
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 0479c5d1eed..70757573051 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -3678,8 +3678,10 @@ void RNA_property_pointer_set(PointerRNA *ptr, PointerRNA ptr_value, ReportList *reports) { - PointerPropertyRNA *pprop = (PointerPropertyRNA *)prop; + /* Detect IDProperty and retrieve the actual PropertyRNA pointer before cast. */ IDProperty *idprop = rna_idproperty_check(&prop, ptr); + + PointerPropertyRNA *pprop = (PointerPropertyRNA *)prop; BLI_assert(RNA_property_type(prop) == PROP_POINTER); /* Check types. */ |