Advance M16 modifier parity and context governance
This commit is contained in:
@@ -5711,6 +5711,12 @@ void BKE_particle_system_blend_read_after_liblink(BlendLibReader * /*reader*/,
|
||||
}
|
||||
}
|
||||
else {
|
||||
#ifdef WITH_WEB
|
||||
/* Keep unlinked legacy particle systems in the Web Main as metadata-only entries. The
|
||||
* desktop cleanup path assumes a fully linked ParticleSettings pointer and would free a
|
||||
* stale modifier allocation in the narrow Web registry. */
|
||||
continue;
|
||||
#else
|
||||
/* Particle modifier must be removed before particle system. */
|
||||
ParticleSystemModifierData *psmd = psys_get_modifier(ob, &psys);
|
||||
BKE_modifier_remove_from_list(ob, reinterpret_cast<ModifierData *>(psmd));
|
||||
@@ -5718,6 +5724,7 @@ void BKE_particle_system_blend_read_after_liblink(BlendLibReader * /*reader*/,
|
||||
|
||||
BLI_remlink(particles, &psys);
|
||||
MEM_delete(&psys);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user