diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-30 08:12:30 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-30 08:12:57 +0300 |
commit | 296002e6a3caa54aa9b8cd0b60223a91a0d68983 (patch) | |
tree | 9c9b8e7addbda8f36725e51c2cab1f4b5da98e7c /mesh_snap_utilities_line | |
parent | 8b32385cf00e2fa7280c7ab6c3ac2a3bdf837eb2 (diff) |
Snap Utilities Line: Cleanup
Diffstat (limited to 'mesh_snap_utilities_line')
-rw-r--r-- | mesh_snap_utilities_line/__init__.py | 16 | ||||
-rw-r--r-- | mesh_snap_utilities_line/preferences.py | 11 |
2 files changed, 8 insertions, 19 deletions
diff --git a/mesh_snap_utilities_line/__init__.py b/mesh_snap_utilities_line/__init__.py index 390cbcd0..9811bfb9 100644 --- a/mesh_snap_utilities_line/__init__.py +++ b/mesh_snap_utilities_line/__init__.py @@ -22,11 +22,11 @@ bl_info = { "name": "Snap_Utilities_Line", "author": "Germano Cavalcante", - "version": (5, 8, 22), + "version": (5, 8, 23), "blender": (2, 80, 0), - "location": "View3D > TOOLS > Snap Utilities > snap utilities", + "location": "View3D > TOOLS > Make Line", "description": "Extends Blender Snap controls", - "wiki_url" : "http://blenderartists.org/forum/showthread.php?363859-Addon-CAD-Snap-Utilities", + #"wiki_url" : "http://blenderartists.org/forum/showthread.php?363859-Addon-CAD-Snap-Utilities", "category": "Mesh"} if "bpy" in locals(): @@ -73,12 +73,12 @@ def tool_make_line(): ) -def get_tool_list(space_type, context_mode): - from bl_ui.space_toolsystem_common import ToolSelectPanelHelper - cls = ToolSelectPanelHelper._tool_class_from_space_type(space_type) - return cls._tools[context_mode] - def register(): + def get_tool_list(space_type, context_mode): + from bl_ui.space_toolsystem_common import ToolSelectPanelHelper + cls = ToolSelectPanelHelper._tool_class_from_space_type(space_type) + return cls._tools[context_mode] + bpy.utils.register_class(preferences.SnapUtilitiesLinePreferences) bpy.utils.register_class(ops_line.SnapUtilitiesLine) diff --git a/mesh_snap_utilities_line/preferences.py b/mesh_snap_utilities_line/preferences.py index 37b6baf6..95dff3bc 100644 --- a/mesh_snap_utilities_line/preferences.py +++ b/mesh_snap_utilities_line/preferences.py @@ -26,17 +26,6 @@ from bpy.props import ( ) -def update_panel(self, context): - try: - panel = bpy.types.VIEW3D_PT_snap_utilities - panel.bl_category = context.user_preferences.addons[__package__].preferences.category - bpy.utils.unregister_class(panel) - bpy.utils.register_class(panel) - except: - print('not update') - pass - - class SnapUtilitiesLinePreferences(bpy.types.AddonPreferences): # this must match the addon name, use '__package__' # when defining this in a submodule of a python package. |