1
# -*- coding: utf-8 -*-
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 #####
22
# Blender Add-Ons menu registration (in User Prefs)
24
'name': 'Cursor Control',
25
'author': 'Morgan Mörtsell (Seminumerical)',
28
'location': 'View3D > Properties > Cursor',
29
'description': 'Control the Cursor',
30
'warning': '', # used for warning icon and text in addons panel
31
'wiki_url': 'http://blenderpythonscripts.wordpress.com/',
33
'category': '3D View'}
39
# To support reload properly, try to access a package var, if it's there, reload everything
40
if "local_var" in locals():
48
from cursor_control import data
49
from cursor_control import ui
50
from cursor_control import operators
51
from cursor_control import history
52
from cursor_control import memory
57
bpy.utils.register_module(__name__)
58
# Register Cursor Control Structure
59
bpy.types.Scene.cursor_control = bpy.props.PointerProperty(type=data.CursorControlData, name="")
60
bpy.types.Scene.cursor_history = bpy.props.PointerProperty(type=history.CursorHistoryData, name="")
61
bpy.types.Scene.cursor_memory = bpy.props.PointerProperty(type=memory.CursorMemoryData, name="")
63
bpy.types.VIEW3D_MT_snap.append(ui.menu_callback)
67
bpy.types.VIEW3D_MT_snap.remove(ui.menu_callback)
68
bpy.utils.unregister_module(__name__)
71
if __name__ == "__main__":