Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeffii <tetha.z@gmail.com>2016-08-01 00:23:44 +0300
committerzeffii <tetha.z@gmail.com>2016-08-01 00:23:44 +0300
commit3ce78656947b1b03125f5ca588a50878dc1a0e2a (patch)
treeb3521b7606997ed1c33e8bd84e81d748f7ef00c4 /mesh_tiny_cad/__init__.py
parent96a957faf31e15ed4922b9cb544fd154b01dee5e (diff)
move to release
Diffstat (limited to 'mesh_tiny_cad/__init__.py')
-rw-r--r--mesh_tiny_cad/__init__.py75
1 files changed, 75 insertions, 0 deletions
diff --git a/mesh_tiny_cad/__init__.py b/mesh_tiny_cad/__init__.py
new file mode 100644
index 00000000..4c8e7100
--- /dev/null
+++ b/mesh_tiny_cad/__init__.py
@@ -0,0 +1,75 @@
+# ##### BEGIN GPL LICENSE BLOCK #####
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ##### END GPL LICENSE BLOCK #####
+
+# <pep8 compliant>
+
+
+bl_info = {
+ "name": "tinyCAD Mesh tools",
+ "author": "zeffii (aka Dealga McArdle)",
+ "version": (1, 3, 0),
+ "blender": (2, 7, 7),
+ "category": "Mesh",
+ "location": "View3D > EditMode > (w) Specials",
+ "wiki_url": "http://zeffii.github.io/mesh_tiny_cad/",
+ "tracker_url": "https://github.com/zeffii/mesh_tiny_cad/issues"
+}
+
+
+if "bpy" in locals():
+ if 'VTX' in locals():
+
+ print('tinyCAD: detected reload event.')
+ import importlib
+
+ try:
+ modules = (CFG, VTX, V2X, XALL, BIX, CCEN, E2F)
+ for m in modules:
+ importlib.reload(m)
+ print("tinyCAD: reloaded modules, all systems operational")
+
+ except Exception as E:
+ print('reload failed with error:')
+ print(E)
+
+
+import bpy
+
+from .CFG import TinyCADProperties
+from .CFG import register_icons, unregister_icons
+from . import VTX, V2X, XALL, BIX, CCEN, E2F
+
+
+def menu_func(self, context):
+ self.layout.menu("VIEW3D_MT_edit_mesh_tinycad")
+ self.layout.separator()
+
+
+def register():
+ register_icons()
+ bpy.utils.register_module(__name__)
+ bpy.types.Scene.tinycad_props = bpy.props.PointerProperty(
+ name="TinyCAD props", type=TinyCADProperties)
+ bpy.types.VIEW3D_MT_edit_mesh_specials.prepend(menu_func)
+
+
+def unregister():
+ bpy.types.VIEW3D_MT_edit_mesh_specials.remove(menu_func)
+ bpy.utils.unregister_module(__name__)
+ del bpy.types.Scene.tinycad_props
+ unregister_icons()