diff options
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index 5db8692e6d8..8efd14afb47 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -154,7 +154,7 @@ class DATA_PT_normals(MeshButtonsPanel, Panel): col = split.column() col.prop(mesh, "use_auto_smooth") sub = col.column() - sub.active = mesh.use_auto_smooth + sub.active = mesh.use_auto_smooth and not mesh.has_custom_normals sub.prop(mesh, "auto_smooth_angle", text="Angle") split.prop(mesh, "show_double_sided") @@ -372,6 +372,11 @@ class DATA_PT_customdata(MeshButtonsPanel, Panel): col.operator("mesh.customdata_clear_mask", icon='X') col.operator("mesh.customdata_clear_skin", icon='X') + if me.has_custom_normals: + col.operator("mesh.customdata_custom_splitnormals_clear", icon='X') + else: + col.operator("mesh.customdata_custom_splitnormals_add", icon='ZOOMIN') + col = layout.column() col.enabled = (obj.mode != 'EDIT') |