Mesh Batch Cache: Port Texture paint wires to new batch request
[blender.git] / source / blender / draw / engines / eevee / eevee_materials.c
index 12ca83e631acb9985b11d5db771c8af2a356ecf0..f26920c2474d7fc46fb6220cbe713e895ecd99be 100644 (file)
@@ -1446,7 +1446,6 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata, EEVEE_ViewLayerData *sld
        const bool is_sculpt_mode_draw =
                is_sculpt_mode &&
                ((ob->sculpt && ob->sculpt->pbvh) && (BKE_pbvh_type(ob->sculpt->pbvh) != PBVH_FACES));
-       const bool use_hide = is_active && DRW_object_use_hide_faces(ob);
        const bool is_default_mode_shader = is_sculpt_mode;
 
        /* First get materials for this mesh. */
@@ -1523,7 +1522,7 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata, EEVEE_ViewLayerData *sld
                        int *auto_layer_is_srgb;
                        int auto_layer_count;
                        struct GPUBatch **mat_geom = DRW_cache_object_surface_material_get(
-                               ob, gpumat_array, materials_len, use_hide,
+                               ob, gpumat_array, materials_len,
                                &auto_layer_names,
                                &auto_layer_is_srgb,
                                &auto_layer_count);