Fix T93573: Curve evaluated mesh selected in edit mode
This fixes the second part of T93573 that 8506f3d9fe didn't
properly address. Specifically, outlines of instances still had the
selected color in edit mode in wireframe view. This change is the
same as that commit, just in a different place.
Differential Revision: https://developer.blender.org/D14229
This commit is contained in:
@@ -291,8 +291,12 @@ void OVERLAY_wireframe_cache_populate(OVERLAY_Data *vedata,
|
||||
const bool is_sculpt_mode = ((ob->mode & OB_MODE_SCULPT) != 0) && (ob->sculpt != NULL);
|
||||
const bool use_sculpt_pbvh = BKE_sculptsession_use_pbvh_draw(ob, draw_ctx->v3d) &&
|
||||
!DRW_state_is_image_render();
|
||||
const bool is_instance = (ob->base_flag & BASE_FROM_DUPLI);
|
||||
const bool instance_parent_in_edit_mode = is_instance ? DRW_object_is_in_edit_mode(
|
||||
DRW_object_get_dupli_parent(ob)) :
|
||||
false;
|
||||
const bool use_coloring = (use_wire && !is_edit_mode && !is_sculpt_mode &&
|
||||
!has_edit_mesh_cage);
|
||||
!has_edit_mesh_cage && !instance_parent_in_edit_mode);
|
||||
geom = DRW_cache_object_face_wireframe_get(ob);
|
||||
|
||||
if (geom || use_sculpt_pbvh) {
|
||||
|
||||
Reference in New Issue
Block a user