Fix T58535 Crash on Load

The particles was not ready when the drawing cache try to use it.
This commit is contained in:
Antonioya
2018-12-03 09:12:29 +01:00
parent 599f6c791a
commit 63d0ea8ecf

View File

@@ -1625,7 +1625,9 @@ void DRW_gpencil_populate_particles(GPENCIL_e_data *e_data, void *vedata)
Object *ob = cache_ob->ob;
if (cache_ob->is_dup_ob) {
GpencilBatchCache *cache = ob->runtime.gpencil_cache;
DRW_gpencil_shgroups_create(e_data, vedata, ob, cache, cache_ob);
if (cache != NULL) {
DRW_gpencil_shgroups_create(e_data, vedata, ob, cache, cache_ob);
}
}
}
}