Fix crash with empty volume object and points drawing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user