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.
25 "blender": (2, 80, 0),
27 "description": "Tool for precisely setting distance, scale, and rotation",
28 "doc_url": "https://github.com/n-Burn/Exact_Edit/wiki",
34 importlib
.reload(xedit_set_meas
)
35 importlib
.reload(xedit_free_rotate
)
37 from . import xedit_set_meas
38 from . import xedit_free_rotate
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'
50 bl_options
= {'DEFAULT_CLOSED'}
52 def draw(self
, context
):
53 row
= self
.layout
.row(align
=True)
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")
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...
70 bpy
.utils
.register_class(c
)
73 for c
in reversed(classes
):
74 bpy
.utils
.unregister_class(c
)
76 if __name__
== "__main__":