[Bf-extensions-cvs] [296002e6] blender2.8: Snap Utilities Line: Cleanup
mano-wii
noreply at git.blender.org
Tue Oct 30 06:13:10 CET 2018
Commit: 296002e6a3caa54aa9b8cd0b60223a91a0d68983
Author: mano-wii
Date: Tue Oct 30 02:12:30 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBA296002e6a3caa54aa9b8cd0b60223a91a0d68983
Snap Utilities Line: Cleanup
===================================================================
M mesh_snap_utilities_line/__init__.py
M mesh_snap_utilities_line/preferences.py
===================================================================
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.
More information about the Bf-extensions-cvs
mailing list