Cleanup: DRW: Replace DRW_view_get_active by DRW_view_default_get
This commit is contained in:
@@ -115,7 +115,7 @@ static void external_image_space_matrix_set(const RenderEngine *engine)
|
||||
BLI_assert(engine != nullptr);
|
||||
|
||||
const DRWContextState *draw_ctx = DRW_context_state_get();
|
||||
const DRWView *view = DRW_view_get_active();
|
||||
const DRWView *view = DRW_view_default_get();
|
||||
SpaceImage *space_image = (SpaceImage *)draw_ctx->space_data;
|
||||
|
||||
/* Apply current view as transformation matrix.
|
||||
|
||||
@@ -743,7 +743,7 @@ static void GPENCIL_draw_scene_depth_only(void *ved)
|
||||
}
|
||||
|
||||
blender::draw::Manager *manager = DRW_manager_get();
|
||||
blender::draw::View view("GPDepthOnlyView", DRW_view_get_active());
|
||||
blender::draw::View view("GPDepthOnlyView", DRW_view_default_get());
|
||||
|
||||
LISTBASE_FOREACH (GPENCIL_tObject *, ob, &pd->tobjects) {
|
||||
LISTBASE_FOREACH (GPENCIL_tLayer *, layer, &ob->layers) {
|
||||
|
||||
@@ -248,7 +248,7 @@ void DebugDraw::display_lines()
|
||||
cpu_draw_buf_.push_update();
|
||||
|
||||
float4x4 persmat;
|
||||
const DRWView *view = DRW_view_get_active();
|
||||
const DRWView *view = DRW_view_default_get();
|
||||
DRW_view_persmat_get(view, persmat.ptr(), false);
|
||||
|
||||
drw_state_set(DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS);
|
||||
|
||||
Reference in New Issue
Block a user