mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix crash using "Copy to selected" on ID-props
This commit is contained in:
parent
163d99b7a9
commit
f71f559d03
1 changed files with 6 additions and 0 deletions
|
|
@ -6497,6 +6497,12 @@ bool RNA_property_copy(PointerRNA *ptr, PointerRNA *fromptr, PropertyRNA *prop,
|
|||
/* In case of IDProperty, we have to find the *real* idprop of ptr,
|
||||
* since prop in this case is just a fake wrapper around actual IDProp data, and not a 'real' PropertyRNA. */
|
||||
prop = (PropertyRNA *)rna_idproperty_find(ptr, ((IDProperty *)fromprop)->name);
|
||||
|
||||
/* its possible the custom-prop doesn't exist on this datablock */
|
||||
if (prop == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Even though currently we now prop will always be the 'fromprop', this might not be the case in the future. */
|
||||
if (prop == fromprop) {
|
||||
fromprop = (PropertyRNA *)rna_idproperty_find(fromptr, ((IDProperty *)prop)->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue