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:
Diffstat (limited to 'release/ui/buttons_data_mesh.py')
-rw-r--r--release/ui/buttons_data_mesh.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/release/ui/buttons_data_mesh.py b/release/ui/buttons_data_mesh.py
index 44a48dcc534..6e9a30cefbc 100644
--- a/release/ui/buttons_data_mesh.py
+++ b/release/ui/buttons_data_mesh.py
@@ -1,4 +1,4 @@
-
+
import bpy
class DataButtonsPanel(bpy.types.Panel):
@@ -12,7 +12,7 @@ class DataButtonsPanel(bpy.types.Panel):
class DATA_PT_surface(DataButtonsPanel):
__idname__ = "DATA_PT_surface"
- __label__ = "Surface"
+ __label__ = "Mesh"
def draw(self, context):
mesh = context.active_object.data
@@ -20,13 +20,15 @@ class DATA_PT_surface(DataButtonsPanel):
split = layout.split()
- sub = split.column()
- sub.itemR(mesh, "autosmooth")
- sub.itemR(mesh, "autosmooth_angle", text="Angle")
+ col = split.column()
+ col.itemR(mesh, "autosmooth")
+ colsub = col.column()
+ colsub.active = mesh.autosmooth
+ colsub.itemR(mesh, "autosmooth_angle", text="Angle")
sub = split.column()
sub.itemR(mesh, "vertex_normal_flip")
sub.itemR(mesh, "double_sided")
layout.itemR(mesh, "texco_mesh")
-bpy.types.register(DATA_PT_surface) \ No newline at end of file
+bpy.types.register(DATA_PT_surface) \ No newline at end of file