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:
parent
60481e4d99
commit
2b3367cdf8
Notes:
blender-bot
2023-02-14 06:45:14 +01:00
Referenced by issue #93573, Regression: Selection outline of curves in edit mode
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue