fix [#36995] FBX Importer does not import fbx model
[blender-addons.git] / space_view3d_math_vis / __init__.py
blob5682895140152d390cfddb6a8b82018656845d00
1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
19 # <pep8 compliant>
21 bl_info = {
22 "name": "Math Vis (Console)",
23 "author": "Campbell Barton",
24 "version": (0, 1),
25 "blender": (2, 57, 0),
26 "location": "View3D > Tool Shelf or Console",
27 "description": "Display console defined mathutils variables in the 3D view",
28 "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
29 "Scripts/3D_interaction/Math_Viz",
30 "tracker_url": "http://projects.blender.org/tracker/index.php?"
31 "func=detail&aid=25545",
32 "support": "OFFICIAL",
33 "category": "3D View"}
35 if "bpy" in locals():
36 import imp
37 imp.reload(utils)
38 imp.reload(draw)
39 else:
40 from . import utils, draw
42 import bpy
45 def console_hook():
46 draw.tag_redraw_all_view3d()
48 def register():
49 draw.callback_enable()
51 import console_python
52 console_python.execute.hooks.append((console_hook, ()))
55 def unregister():
56 draw.callback_disable()
58 import console_python
59 console_python.execute.hooks.remove((console_hook, ()))