Fix T90570: Constraint validity not updated with library overrides.
For some reason was assuming setting a property in RNA would call its update callback if any, but this actually needs to be done separately. So add this call to `rna_property_override_operation_apply`.
This commit is contained in:
parent
5949d598bc
commit
43167a2c25
Notes:
blender-bot
2023-02-14 09:44:56 +01:00
Referenced by commit 91b4c1841a
, Fix T92272: Rigid Body Copy to Selected "Margin" crash
Referenced by issue #99256, Regression: Meta balls segfaulting copy-to-selected
Referenced by issue #92272, Rigid Body - Copy to Selected "Margin" make crash Blender 3.0
Referenced by issue #90570, Constraint validity not updated with library overrides
Referenced by issue #87898, Alembic constraint fails with library overrides
|
@ -614,20 +614,25 @@ static bool rna_property_override_operation_apply(Main *bmain,
|
|||
}
|
||||
|
||||
/* get and set the default values as appropriate for the various types */
|
||||
return override_apply(bmain,
|
||||
ptr_dst,
|
||||
ptr_src,
|
||||
ptr_storage,
|
||||
prop_dst,
|
||||
prop_src,
|
||||
prop_storage,
|
||||
len_dst,
|
||||
len_src,
|
||||
len_storage,
|
||||
ptr_item_dst,
|
||||
ptr_item_src,
|
||||
ptr_item_storage,
|
||||
opop);
|
||||
const bool sucess = override_apply(bmain,
|
||||
ptr_dst,
|
||||
ptr_src,
|
||||
ptr_storage,
|
||||
prop_dst,
|
||||
prop_src,
|
||||
prop_storage,
|
||||
len_dst,
|
||||
len_src,
|
||||
len_storage,
|
||||
ptr_item_dst,
|
||||
ptr_item_src,
|
||||
ptr_item_storage,
|
||||
opop);
|
||||
if (sucess) {
|
||||
RNA_property_update_main(bmain, NULL, ptr_dst, prop_dst);
|
||||
}
|
||||
|
||||
return sucess;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue