Question. How can I cause update the display of another (not self) modified object from the modifier? How I can get global context in modifier?
I want to process the update of another object. There is such code, but I don’t know how to get the context.
static Mesh *applyModifier(struct ModifierData *md,
const struct ModifierEvalContext *ctx,
struct Mesh *mesh)
{
…
DEG_relations_tag_update(bmain);
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
WM_event_add_notifier(C, NC_GEOM | ND_DATA, ob->data);
…
}
Now the object is updated only when switching to edit mode and back to object mode