Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_edit_curves.cc
| /* SPDX-License-Identifier: GPL-2.0-or-later | /* SPDX-License-Identifier: GPL-2.0-or-later | ||||
| * Copyright 2022 Blender Foundation. */ | * Copyright 2022 Blender Foundation. */ | ||||
| /** \file | /** \file | ||||
| * \ingroup draw_engine | * \ingroup draw_engine | ||||
| */ | */ | ||||
| #include "DRW_render.h" | #include "DRW_render.h" | ||||
| #include "ED_view3d.h" | #include "ED_view3d.h" | ||||
| #include "draw_cache_impl.h" | #include "draw_cache_impl.h" | ||||
| #include "overlay_private.h" | #include "overlay_private.hh" | ||||
| void OVERLAY_edit_curves_init(OVERLAY_Data *vedata) | void OVERLAY_edit_curves_init(OVERLAY_Data *vedata) | ||||
| { | { | ||||
| OVERLAY_PrivateData *pd = vedata->stl->pd; | OVERLAY_PrivateData *pd = vedata->stl->pd; | ||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| pd->edit_curves.do_zbufclip = XRAY_FLAG_ENABLED(draw_ctx->v3d); | pd->edit_curves.do_zbufclip = XRAY_FLAG_ENABLED(draw_ctx->v3d); | ||||
| ▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines | |||||