Cleanup: redundant checks

In some cases moved the checks into asserts,
to ensure changes in the future don't cause
the checks to become necessary again.
This commit is contained in:
2020-03-15 21:48:35 +11:00
parent 80edc0e972
commit 4be4c06671
8 changed files with 15 additions and 18 deletions

View File

@@ -525,9 +525,7 @@ static void build_pict_list_ex(
BLI_stringenc(filepath, fp_decoded.head, fp_decoded.tail, fp_decoded.digits, fp_framenr);
while ((hasevent = GHOST_ProcessEvents(g_WS.ghost_system, 0))) {
if (hasevent) {
GHOST_DispatchEvents(g_WS.ghost_system);
}
GHOST_DispatchEvents(g_WS.ghost_system);
if (ps->loading == false) {
return;
}