Cleanup: Remove disabled code from particle system modifier

This comment referenced a special case for modifier evaluation in edit
mode. With replacements on the horizon, this won't be added anymore.
This commit is contained in:
Hans Goudey
2023-06-05 15:48:53 -04:00
parent 102c015306
commit c2430e55c8

View File

@@ -228,30 +228,6 @@ static void deformVerts(ModifierData *md,
}
}
/* disabled particles in editmode for now, until support for proper evaluated mesh
* updates is coded */
#if 0
static void deformVertsEM(ModifierData *md,
Object *ob,
BMEditMesh *editData,
Mesh *mesh,
float (*vertexCos)[3],
int verts_num)
{
const bool do_temp_mesh = (mesh == nullptr);
if (do_temp_mesh) {
mesh = BKE_id_new_nomain(ID_ME, ((ID *)ob->data)->name);
BM_mesh_bm_to_me(nullptr, editData->bm, mesh, &((BMeshToMeshParams){0}));
}
deformVerts(md, ob, mesh, vertexCos, verts_num);
if (derivedData) {
BKE_id_free(nullptr, mesh);
}
}
#endif
static void panel_draw(const bContext * /*C*/, Panel *panel)
{
uiLayout *layout = panel->layout;
@@ -307,11 +283,7 @@ ModifierTypeInfo modifierType_ParticleSystem = {
/*srna*/ &RNA_ParticleSystemModifier,
/*type*/ eModifierTypeType_OnlyDeform,
/*flags*/ eModifierTypeFlag_AcceptsMesh | eModifierTypeFlag_SupportsMapping |
eModifierTypeFlag_UsesPointCache
#if 0
| eModifierTypeFlag_SupportsEditmode | eModifierTypeFlag_EnableInEditmode
#endif
,
eModifierTypeFlag_UsesPointCache,
/*icon*/ ICON_MOD_PARTICLES,
/*copyData*/ copyData,