Fix T65049 Crash cause by NULL geom pointer

This commit is contained in:
Clément Foucault 2019-05-30 18:28:05 +02:00
parent 8a4a05ae85
commit 8f4b7083d3
Notes: blender-bot 2023-02-14 02:27:54 +01:00
Referenced by issue #65182, Blender bailout when and at the instant of clicking on the space for positionning cursor
Referenced by issue #65049, rotate/pan the viewport makes blender crash (in very specific case)
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ static void basic_cache_populate(void *vedata, Object *ob)
if (is_flat_object_viewed_from_side) {
/* Avoid losing flat objects when in ortho views (see T56549) */
struct GPUBatch *geom = DRW_cache_object_all_edges_get(ob);
DRW_shgroup_call(stl->g_data->depth_shgrp, geom, ob);
if (geom) {
DRW_shgroup_call(stl->g_data->depth_shgrp, geom, ob);
}
return;
}
}