diff options
author | Falk David <falkdavid@gmx.de> | 2021-01-04 17:31:53 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2021-01-04 17:34:02 +0300 |
commit | 09c1cb8a17e4c1a0aeea0d5477ec2db61390a5e8 (patch) | |
tree | 375c360ff15a6d346f337edee0492501c0f659b9 /source/blender/draw/intern/draw_cache_impl.h | |
parent | c6e5b3f42dfc05e911ef30df12821138e1225e91 (diff) |
Fix T84260: NURBS edit mode lines not showing
When in edit mode, the edit lines for de-selected surfaces did not
show up.
The bug was caused by the is_gpencil bool which reused another flag.
Both grease pencil and nurbs surfaces use the edit_curve_handle shader.
A dedicated flag was added to make sure the is_gpencil bool is
set correctly.
Reviewed By: fclem
Maniphest Tasks: T84260
Differential Revision: https://developer.blender.org/D9985
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl.h b/source/blender/draw/intern/draw_cache_impl.h index 46b6cc7d708..7b97ce43558 100644 --- a/source/blender/draw/intern/draw_cache_impl.h +++ b/source/blender/draw/intern/draw_cache_impl.h @@ -230,6 +230,8 @@ enum { VFLAG_EDGE_SHARP = 1 << 6, VFLAG_EDGE_FREESTYLE = 1 << 7, /* Beware to not go over 1 << 7 (it's a byte flag). */ + /* NOTE: Grease pencil edit curve use another type of data format that allows for this value. */ + VFLAG_VERT_GPENCIL_BEZT_HANDLE = 1 << 30, }; enum { |