diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 18:35:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-02 18:35:58 +0400 |
commit | 4802d6516ba5ba60076085c51683e9b4d6a92066 (patch) | |
tree | 072444380153722e2e5edb6ea65edec984254589 /space_view3d_align_tools.py | |
parent | 3148c0f203ba23bead40e4e037bcc9a1eb27278b (diff) |
fix for registering scripts.
- mesh_surface_sketch.py
- render_renderfarmfi.py
- space_view3d_align_tools.py
- object_cloud_gen.py
also move bl_addon_info to the top for faster parsing.
Diffstat (limited to 'space_view3d_align_tools.py')
-rw-r--r-- | space_view3d_align_tools.py | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/space_view3d_align_tools.py b/space_view3d_align_tools.py index 5ce7bdbb..31a04d11 100644 --- a/space_view3d_align_tools.py +++ b/space_view3d_align_tools.py @@ -19,34 +19,29 @@ # # ***** END GPL LICENCE BLOCK ***** -"""Align Selected Objects""" - bl_addon_info = { - 'name': '3D View: Align Tools', - 'author': 'Gabriel Beaudin (gabhead)', - 'version': '0.1', - 'blender': (2, 5, 3), - 'location': 'Tool Shelf', - 'description': 'Align selected objects to the active object', - 'warning': '', # used for warning icon and text in addons panel - 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \ - 'Scripts/3D interaction/Align_Tools', - 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\ - 'func=detail&aid==22389&group_id=153&atid=468', - 'category': '3D View'} + "name": "3D View: Align Tools", + "author": "Gabriel Beaudin (gabhead)", + "version": "0.1", + "blender": (2, 5, 3), + "location": "Tool Shelf", + "description": "Align selected objects to the active object", + "warning": "", + "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/3D interaction/Align_Tools", + "tracker_url": "https://projects.blender.org/tracker/index.php?func=detail&aid==22389&group_id=153&atid=468", + "category": "3D View"} + +"""Align Selected Objects""" import bpy -##interface -###################### -class View3DPanel(bpy.types.Panel): + +class AlignUi(bpy.types.Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'TOOLS' -class AlignUi(View3DPanel): bl_label = "Align Tools" bl_context = "objectmode" - def draw(self, context): layout = self.layout @@ -95,13 +90,6 @@ class AlignUi(View3DPanel): col.operator("object.AlignObjectsScaleAll",text="All") - - -##Ops -################## - -## Def - ##Align all def main(context): for i in bpy.context.selected_objects: |