Fix crash with empty volume object and points drawing

This commit is contained in:
Brecht Van Lommel
2020-03-21 14:43:47 +01:00
parent 0dbbb2eabf
commit c0544eedc6

View File

@@ -173,7 +173,9 @@ void OVERLAY_wireframe_cache_populate(OVERLAY_Data *vedata,
DRW_object_wire_theme_get(ob, draw_ctx->view_layer, &color);
struct GPUBatch *geom = DRW_cache_object_face_wireframe_get(ob);
OVERLAY_extra_loose_points(cb, geom, ob->obmat, color);
if (geom) {
OVERLAY_extra_loose_points(cb, geom, ob->obmat, color);
}
return;
}
}