Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-14 06:55:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-14 06:56:33 +0300
commit170541c5c7bf3015c41aa6d87dadc406b885f381 (patch)
tree07034400f4c82988802915128250889d3d49dbfa
parenta4bd3f7d7e5634c96fd15d4bd8c2ed0211dc990a (diff)
Cleanup: remove developer panel
Defined whole panel for a single checkbox which is hidden by default.
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py28
1 files changed, 4 insertions, 24 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 8c34dfd5f20..f8ae62374b9 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -5546,6 +5546,10 @@ class VIEW3D_PT_overlay_edit_mesh(Panel):
row.prop(overlay, "show_edge_bevel_weight", text="Bevel", toggle=True)
row.prop(overlay, "show_edge_seams", text="Seams", toggle=True)
+ if context.preferences.view.show_developer_ui:
+ col.label(text="Developer")
+ col.prop(overlay, "show_extra_indices", text="Indices")
+
class VIEW3D_PT_overlay_edit_mesh_shading(Panel):
bl_space_type = 'VIEW_3D'
@@ -5706,29 +5710,6 @@ class VIEW3D_PT_overlay_edit_mesh_freestyle(Panel):
row.prop(overlay, "show_freestyle_face_marks", text="Face Marks")
-class VIEW3D_PT_overlay_edit_mesh_developer(Panel):
- bl_space_type = 'VIEW_3D'
- bl_region_type = 'HEADER'
- bl_parent_id = 'VIEW3D_PT_overlay_edit_mesh'
- bl_label = "Developer"
-
- @classmethod
- def poll(cls, context):
- return context.mode == 'EDIT_MESH' and context.preferences.view.show_developer_ui
-
- def draw(self, context):
- layout = self.layout
-
- view = context.space_data
- overlay = view.overlay
- display_all = overlay.show_overlays
-
- col = layout.column()
- col.active = display_all
-
- col.prop(overlay, "show_extra_indices", text="Indices")
-
-
class VIEW3D_PT_overlay_edit_curve(Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'HEADER'
@@ -6686,7 +6667,6 @@ classes = (
VIEW3D_PT_overlay_edit_mesh_measurement,
VIEW3D_PT_overlay_edit_mesh_normals,
VIEW3D_PT_overlay_edit_mesh_freestyle,
- VIEW3D_PT_overlay_edit_mesh_developer,
VIEW3D_PT_overlay_edit_curve,
VIEW3D_PT_overlay_paint,
VIEW3D_PT_overlay_pose,