Fix #127833: Action linked after particle settings duplication
Similar to how we do for new world, material, ..., no reason to not
duplicate Actions (no way otherwise to assign a different Action from
UI).
Fix similar to a75ac18638
Pull Request: https://projects.blender.org/blender/blender/pulls/127850
This commit is contained in:
committed by
Philipp Oeser
parent
ec7fc8fef4
commit
44a845d650
@@ -169,7 +169,8 @@ static int new_particle_settings_exec(bContext *C, wmOperator * /*op*/)
|
||||
|
||||
/* add or copy particle setting */
|
||||
if (psys->part) {
|
||||
part = (ParticleSettings *)BKE_id_copy(bmain, &psys->part->id);
|
||||
part = reinterpret_cast<ParticleSettings *>(BKE_id_copy_ex(
|
||||
bmain, &psys->part->id, nullptr, LIB_ID_COPY_DEFAULT | LIB_ID_COPY_ACTIONS));
|
||||
}
|
||||
else {
|
||||
part = BKE_particlesettings_add(bmain, "ParticleSettings");
|
||||
|
||||
Reference in New Issue
Block a user