[Bf-blender-cvs] [64e3051ebe5] blender2.8: UI: remove shading & uv's panel
Campbell Barton
noreply at git.blender.org
Tue Apr 24 21:07:19 CEST 2018
Commit: 64e3051ebe5b620b588a342d69a8b80d92715a65
Author: Campbell Barton
Date: Tue Apr 24 21:07:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB64e3051ebe5b620b588a342d69a8b80d92715a65
UI: remove shading & uv's panel
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index f1ed2f00a01..f53d9af89e4 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -2495,6 +2495,7 @@ class VIEW3D_MT_edit_mesh(Menu):
layout.separator()
layout.menu("VIEW3D_MT_edit_mesh_normals")
+ layout.menu("VIEW3D_MT_edit_mesh_shading")
layout.menu("VIEW3D_MT_edit_mesh_weights")
layout.menu("VIEW3D_MT_edit_mesh_clean")
@@ -2800,6 +2801,26 @@ class VIEW3D_MT_edit_mesh_normals(Menu):
layout.separator()
layout.operator("mesh.flip_normals")
+ layout.operator("mesh.set_normals_from_faces", text="Set From Faces")
+
+
+class VIEW3D_MT_edit_mesh_shading(Menu):
+ bl_label = "Shading"
+
+ def draw(self, context):
+ layout = self.layout
+
+ layout.label(text="Faces:")
+ layout.operator("mesh.faces_shade_smooth", text="Smooth")
+ layout.operator("mesh.faces_shade_flat", text="Flat")
+ layout.label(text="Edges:")
+ layout.operator("mesh.mark_sharp", text="Smooth").clear = True
+ layout.operator("mesh.mark_sharp", text="Sharp")
+ layout.label(text="Vertices:")
+ props = layout.operator("mesh.mark_sharp", text="Smooth")
+ props.use_verts = True
+ props.clear = True
+ layout.operator("mesh.mark_sharp", text="Sharp").use_verts = True
class VIEW3D_MT_edit_mesh_weights(Menu):
@@ -3922,6 +3943,7 @@ classes = (
VIEW3D_MT_edit_mesh_edges_data,
VIEW3D_MT_edit_mesh_faces,
VIEW3D_MT_edit_mesh_normals,
+ VIEW3D_MT_edit_mesh_shading,
VIEW3D_MT_edit_mesh_weights,
VIEW3D_MT_edit_mesh_clean,
VIEW3D_MT_edit_mesh_delete,
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index effb6c3e940..ed05432977a 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -100,14 +100,6 @@ class VIEW3D_PT_tools_object(View3DPanel, Panel):
row.operator("object.shade_smooth", text="Smooth")
row.operator("object.shade_flat", text="Flat")
- if obj_type == 'MESH':
- col = layout.column(align=True)
- col.label(text="Data Transfer:")
- row = col.row(align=True)
- row.operator("object.data_transfer", text="Data")
- row.operator("object.datalayout_transfer", text="Data Layout")
-
-
# ********** default tools for editmode_mesh ****************
@@ -161,52 +153,6 @@ class VIEW3D_PT_tools_meshedit(View3DPanel, Panel):
col.operator("mesh.remove_doubles")
-class VIEW3D_PT_tools_shading(View3DPanel, Panel):
- bl_category = "Shading / UVs"
- bl_context = "mesh_edit"
- bl_label = "Shading"
-
- def draw(self, context):
- layout = self.layout
-
- col = layout.column(align=True)
- col.label(text="Faces:")
- row = col.row(align=True)
- row.operator("mesh.faces_shade_smooth", text="Smooth")
- row.operator("mesh.faces_shade_flat", text="Flat")
- col.label(text="Edges:")
- row = col.row(align=True)
- row.operator("mesh.mark_sharp", text="Smooth").clear = True
- row.operator("mesh.mark_sharp", text="Sharp")
- col.label(text="Vertices:")
- row = col.row(align=True)
- props = row.operator("mesh.mark_sharp", text="Smooth")
- props.use_verts = True
- props.clear = True
- row.operator("mesh.mark_sharp", text="Sharp").use_verts = True
-
- col = layout.column(align=True)
- col.label(text="Normals:")
- col.operator("mesh.normals_make_consistent", text="Recalculate")
- col.operator("mesh.flip_normals", text="Flip Direction")
- col.operator("mesh.set_normals_from_faces", text="Set From Faces")
-
-
-class VIEW3D_PT_tools_uvs(View3DPanel, Panel):
- bl_category = "Shading / UVs"
- bl_context = "mesh_edit"
- bl_label = "UVs"
-
- def draw(self, context):
- layout = self.layout
-
- col = layout.column(align=True)
- col.label(text="UV Mapping:")
- col.menu("VIEW3D_MT_uv_map", text="Unwrap")
- col.operator("mesh.mark_seam").clear = False
- col.operator("mesh.mark_seam", text="Clear Seam").clear = True
-
-
class VIEW3D_PT_tools_meshedit_options(View3DPanel, Panel):
bl_category = "Options"
bl_context = "mesh_edit"
@@ -1636,8 +1582,6 @@ class VIEW3D_PT_tools_history(View3DPanel, Panel):
classes = (
VIEW3D_PT_tools_object,
VIEW3D_PT_tools_meshedit,
- VIEW3D_PT_tools_shading,
- VIEW3D_PT_tools_uvs,
VIEW3D_PT_tools_meshedit_options,
VIEW3D_PT_tools_curveedit,
VIEW3D_PT_tools_curveedit_options_stroke,
More information about the Bf-blender-cvs
mailing list