Object Mode: Add to EvaluationContext & DRWContextState
This commit is contained in:
@@ -1241,7 +1241,7 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata, EEVEE_ViewLayerData *sld
|
||||
IDProperty *ces_mode_ob = BKE_layer_collection_engine_evaluated_get(ob, COLLECTION_MODE_OBJECT, "");
|
||||
const bool do_cull = BKE_collection_engine_property_value_get_bool(ces_mode_ob, "show_backface_culling");
|
||||
const bool is_active = (ob == draw_ctx->obact);
|
||||
const bool is_sculpt_mode = is_active && (ob->mode & OB_MODE_SCULPT) != 0;
|
||||
const bool is_sculpt_mode = is_active && (draw_ctx->object_mode & OB_MODE_SCULPT) != 0;
|
||||
#if 0
|
||||
const bool is_sculpt_mode_draw = is_sculpt_mode && (draw_ctx->v3d->flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE) == 0;
|
||||
#else
|
||||
|
||||
@@ -79,6 +79,7 @@ static void eevee_motion_blur_camera_get_matrix_at_time(
|
||||
scene,
|
||||
draw_ctx->view_layer,
|
||||
draw_ctx->engine_type,
|
||||
draw_ctx->object_mode,
|
||||
DAG_EVAL_VIEWPORT);
|
||||
eval_ctx.ctime = time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user