mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
1 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue