Curves: Hide snapping menu in curves sculpt mode

The menu/popover doesn't affect anything in the mode, and precision
operations that would use snapping are meant for edit mode anyway.
This commit is contained in:
Hans Goudey 2022-07-19 10:45:01 -05:00
parent 35b4e3a350
commit 87ae10a050
1 changed files with 2 additions and 2 deletions

View File

@ -603,8 +603,8 @@ class VIEW3D_HT_header(Header):
show_snap = True
else:
if (object_mode not in {
'SCULPT', 'VERTEX_PAINT', 'WEIGHT_PAINT', 'TEXTURE_PAINT',
'PAINT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL'
'SCULPT', 'SCULPT_CURVES', 'VERTEX_PAINT', 'WEIGHT_PAINT', 'TEXTURE_PAINT',
'PAINT_GPENCIL', 'SCULPT_GPENCIL', 'WEIGHT_GPENCIL', 'VERTEX_GPENCIL',
}) or has_pose_mode:
show_snap = True
else: