Fix T65049 Crash cause by NULL geom pointer
This commit is contained in:
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)
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue