Avoid assert on startup

This commit is contained in:
Campbell Barton 2018-06-18 17:39:35 +02:00
parent d7122825ec
commit f828355cd6
1 changed files with 6 additions and 1 deletions

View File

@ -4669,9 +4669,14 @@ void PE_create_particle_edit(
psys = NULL;
}
/* Causes assert on startup. */
#if 0
UI_GetThemeColor3ubv(TH_EDGE_SELECT, edit->sel_col);
UI_GetThemeColor3ubv(TH_WIRE, edit->nosel_col);
#else
memset(edit->sel_col, 0xff, sizeof(edit->sel_col));
memset(edit->nosel_col, 0x00, sizeof(edit->nosel_col));
#endif
recalc_lengths(edit);
if (psys && !cache)
recalc_emitter_field(depsgraph, ob, psys);