Curves: Move draw options to overlays

This commit add one regression: it is impossible to currently hide handles
in the viewport. But this should be fixed in another commit.
This commit is contained in:
2018-09-25 18:50:57 +02:00
parent 05d0e5315b
commit 2cff9b4cb6
19 changed files with 123 additions and 103 deletions

View File

@@ -4554,7 +4554,6 @@ class VIEW3D_PT_overlay_edit_curve(Panel):
def draw(self, context):
layout = self.layout
view = context.space_data
data = context.active_object.data
overlay = view.overlay
display_all = overlay.show_overlays
@@ -4562,8 +4561,8 @@ class VIEW3D_PT_overlay_edit_curve(Panel):
col.active = display_all
row = col.row()
row.prop(data, "show_handles", text="Handles")
row.prop(data, "show_normal_face", text="Normals")
row.prop(overlay, "show_curve_handles", text="Handles")
row.prop(overlay, "show_curve_normals", text="Normals")
class VIEW3D_PT_overlay_sculpt(Panel):