Particle edit: Initial support of edit with copy-on-write

The idea is that edit mode structure is owned by original object,
and used for drawing. This is a bit confusing, especially since
path cache is also in that structure and needs evaluated object
to calculate cache.

In the future we should split edit data from visualization data,
but that's bigger refactor.
This commit is contained in:
2018-05-11 12:44:43 +02:00
parent ff3e9d0d90
commit d50821f145
9 changed files with 111 additions and 61 deletions

View File

@@ -946,7 +946,7 @@ static void copy_particle_edit(
pa++;
}
update_world_cos(ob, edit);
update_world_cos(depsgraph, ob, edit);
UI_GetThemeColor3ubv(TH_EDGE_SELECT, edit->sel_col);
UI_GetThemeColor3ubv(TH_WIRE, edit->nosel_col);