diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-21 07:41:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-21 07:41:59 +0400 |
commit | b889e9c573cc5512cfd0a9a466928b1387235a76 (patch) | |
tree | 3f4a430d5dde846b337c2f041d8ff6ad0f46c2ce /release | |
parent | e38c1a5ae721630c217ca7830fd7aabf6f4620e0 (diff) |
There was no way to remove mesh data layers from the interface - add a panel that works in object an editmode.
currently can remove sticky/mask/skin vertex layers.
regarding the skin layer - while adding and removing the modifier normally works fine, its not 100% reliable since the mesh may be linked into another scene, or be a linked duplicate and the object with the modifier deleted.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_mesh.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_mesh.py b/release/scripts/startup/bl_ui/properties_data_mesh.py index 5f21f78a375..fba3fa9c635 100644 --- a/release/scripts/startup/bl_ui/properties_data_mesh.py +++ b/release/scripts/startup/bl_ui/properties_data_mesh.py @@ -316,10 +316,28 @@ class DATA_PT_vertex_colors(MeshButtonsPanel, Panel): layout.prop(lay, "name") +class DATA_PT_customdata(MeshButtonsPanel, Panel): + bl_label = "Geometry Data" + bl_options = {'DEFAULT_CLOSED'} + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} + + def draw(self, context): + layout = self.layout + + # me = context.mesh + col = layout.column(align=True) + # row = col.row(align=True) + # row.operator("mesh.customdata_add_sticky", icon='ZOOMIN') + col.operator("mesh.customdata_clear_sticky", icon='X') + col.operator("mesh.customdata_clear_mask", icon='X') + col.operator("mesh.customdata_clear_skin", icon='X') + + class DATA_PT_custom_props_mesh(MeshButtonsPanel, PropertyPanel, Panel): COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'} _context_path = "object.data" _property_type = bpy.types.Mesh + if __name__ == "__main__": # only for live edit. bpy.utils.register_module(__name__) |