diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-14 04:04:29 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-04-14 04:04:37 +0300 |
commit | 3f305b9ab3cb66374e6bdf4662ff1bfe90b3c225 (patch) | |
tree | 7303e1182e14ed9ad9c3b5df32addbe6011139e3 | |
parent | 8826db8f0300cdc60b985ce9b05f2338c20ac411 (diff) |
Fix T97053: on cage GPU subdivision shows subdivided edges as actual
edges
When wireframe mode is turned on, the subdivision edges not originating
from coarse edges were also drawn as regular edges, which would confuse
users trying to select them. These should not be drawn in edit mode,
only in object mode when optimal display is turned off (matching the CPU
subdivision case).
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_subdivision.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_subdivision.cc b/source/blender/draw/intern/draw_cache_impl_subdivision.cc index e0ec0e64ea2..c859a72b371 100644 --- a/source/blender/draw/intern/draw_cache_impl_subdivision.cc +++ b/source/blender/draw/intern/draw_cache_impl_subdivision.cc @@ -1942,7 +1942,9 @@ static bool draw_subdiv_create_requested_buffers(const Scene *scene, return false; } - const bool optimal_display = (smd->flags & eSubsurfModifierFlag_ControlEdges); + /* Edges which do not come from coarse edges should not be drawn in edit mode, only in object + * mode when optimal display in turned off. */ + const bool optimal_display = (smd->flags & eSubsurfModifierFlag_ControlEdges) || is_editmode; draw_cache->bm = bm; draw_cache->mesh = mesh_eval; |