Extensions: change the constant for the complete status
[blender-addons-contrib.git] / exact_edit / __init__.py
blobe52d31e82fe2c7990b6120afdfc0ce758e39d090
1 '''
2 BEGIN GPL LICENSE BLOCK
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 END GPL LICENSE BLOCK
19 '''
21 bl_info = {
22 "name": "Exact Edit",
23 "author": "nBurn",
24 "version": (0, 3, 4),
25 "blender": (2, 80, 0),
26 "location": "View3D",
27 "description": "Tool for precisely setting distance, scale, and rotation",
28 "doc_url": "https://github.com/n-Burn/Exact_Edit/wiki",
29 "category": "Object"
32 if "bpy" in locals():
33 import importlib
34 importlib.reload(xedit_set_meas)
35 importlib.reload(xedit_free_rotate)
36 else:
37 from . import xedit_set_meas
38 from . import xedit_free_rotate
40 import bpy
43 class XEDIT_PT_ui_panel(bpy.types.Panel):
44 # Creates a panel in the 3d view N Panel
45 bl_label = 'Exact Edit'
46 bl_idname = 'XEDIT_PT_base_panel'
47 bl_space_type = 'VIEW_3D'
48 bl_region_type = 'UI'
49 bl_category = 'Edit'
50 bl_options = {'DEFAULT_CLOSED'}
52 def draw(self, context):
53 row = self.layout.row(align=True)
54 col = row.column()
55 col.operator("view3d.xedit_set_meas_op", text="Set Measure", icon="EDITMODE_HLT")
56 col.operator("view3d.xedit_free_rotate_op", text="Free Rotate", icon="FORCE_MAGNETIC")
59 classes = (
60 xedit_set_meas.XEDIT_OT_store_meas_btn,
61 xedit_set_meas.XEDIT_OT_meas_inp_dlg,
62 xedit_set_meas.XEDIT_OT_set_meas,
63 xedit_free_rotate.XEDIT_OT_free_rotate, # beta testing...
64 XEDIT_PT_ui_panel
68 def register():
69 for c in classes:
70 bpy.utils.register_class(c)
72 def unregister():
73 for c in reversed(classes):
74 bpy.utils.unregister_class(c)
76 if __name__ == "__main__":
77 register()