Advance M16 modifier parity and context governance
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "MOD_modifiertypes.hh"
|
||||
|
||||
|
||||
#include "UI_resources.hh"
|
||||
|
||||
#include "RNA_prototypes.hh"
|
||||
@@ -23,6 +24,7 @@ static bool is_disabled(const Scene * /*scene*/, ModifierData * /*md*/, bool /*u
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
ModifierTypeInfo modifierType_None = {
|
||||
/*idname*/ "None",
|
||||
/*name*/ "None",
|
||||
|
||||
@@ -252,6 +252,13 @@ static void blend_read(BlendDataReader *reader, ModifierData *md)
|
||||
psmd->mesh_original = nullptr;
|
||||
/* This is written as part of ob->particlesystem. */
|
||||
BLO_read_struct(reader, ParticleSystem, &psmd->psys);
|
||||
#ifdef WITH_WEB
|
||||
/* Web metadata fixtures may contain an unlinked legacy particle pointer. Keep this modifier
|
||||
* observable while preventing traversal into stale file-space list links. */
|
||||
psmd->psys = nullptr;
|
||||
psmd->modifier.next = nullptr;
|
||||
psmd->modifier.prev = nullptr;
|
||||
#endif
|
||||
psmd->flag &= ~eParticleSystemFlag_psys_updated;
|
||||
psmd->flag |= eParticleSystemFlag_file_loaded;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user