UI: preference for developer extras

Currently only used for "Edit Source" feature.
This commit is contained in:
Campbell Barton
2018-06-21 14:54:21 +02:00
parent 52aa963f0e
commit a4f08297ed
6 changed files with 14 additions and 5 deletions

View File

@@ -223,6 +223,7 @@ class USERPREF_PT_interface(Panel):
col.prop(view, "ui_line_width", text="Line Width")
col.prop(view, "show_tooltips")
col.prop(view, "show_tooltips_python")
col.prop(view, "show_developer_ui")
col.prop(view, "show_object_info", text="Object Info")
col.prop(view, "show_large_cursors")
col.prop(view, "show_view_name", text="View Name")

View File

@@ -3728,7 +3728,7 @@ class VIEW3D_PT_view3d_meshdisplay(Panel):
col.label(text="Face Info:")
col.prop(mesh, "show_extra_face_area", text="Area")
col.prop(mesh, "show_extra_face_angle", text="Angle")
if bpy.app.debug:
if context.user_preferences.view.show_developer_ui:
layout.prop(mesh, "show_extra_indices")