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:
authormano-wii <germano.costa@ig.com.br>2018-11-01 19:25:32 +0300
committermano-wii <germano.costa@ig.com.br>2018-11-01 19:26:22 +0300
commitad39a4b8961e2afb852852e2e3057bc3a770d2ee (patch)
tree516daba9c561b274977386167a7be28f81a7abcf /mesh_snap_utilities_line/__init__.py
parent0119f2c49483e1a69ae500d0f553c1cff4a064d9 (diff)
Snap Utilties Line: Remove the suport of Gizmos.
Gizmos is not the best option for this addon. For example: - you can not release objects created in the setup if you no longer need to draw the gizmo; - You can not reference the gizmo in the Operator.
Diffstat (limited to 'mesh_snap_utilities_line/__init__.py')
-rw-r--r--mesh_snap_utilities_line/__init__.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mesh_snap_utilities_line/__init__.py b/mesh_snap_utilities_line/__init__.py
index 0aedab1f..d196a537 100644
--- a/mesh_snap_utilities_line/__init__.py
+++ b/mesh_snap_utilities_line/__init__.py
@@ -65,11 +65,11 @@ def tool_make_line():
"Connect them to split faces"
),
icon=os.path.join(icons_dir, "ops.mesh.make_line"),
- widget="MESH_GGT_mouse_point",
+# widget="MESH_GGT_mouse_point",
operator="mesh.make_line",
-# keymap=(
-# ("mesh.make_line", dict(wait_for_input=False), dict(type='ACTIONMOUSE', value='PRESS')),
-# ),
+ keymap=(
+ ("mesh.make_line", None, dict(type='ACTIONMOUSE', value='PRESS')),
+ ),
draw_settings=draw_settings,
)
@@ -82,8 +82,8 @@ def register():
bpy.utils.register_class(preferences.SnapUtilitiesLinePreferences)
bpy.utils.register_class(ops_line.SnapUtilitiesLine)
- bpy.utils.register_class(common_classes.MousePointWidget)
- bpy.utils.register_class(common_classes.MousePointWidgetGroup)
+# bpy.utils.register_class(common_classes.MousePointWidget)
+# bpy.utils.register_class(common_classes.MousePointWidgetGroup)
bpy.utils.register_tool('VIEW_3D', 'EDIT_MESH', tool_make_line)
@@ -97,8 +97,8 @@ def register():
def unregister():
bpy.utils.unregister_tool('VIEW_3D', 'EDIT_MESH', tool_make_line)
- bpy.utils.unregister_class(common_classes.MousePointWidgetGroup)
- bpy.utils.unregister_class(common_classes.MousePointWidget)
+# bpy.utils.unregister_class(common_classes.MousePointWidgetGroup)
+# bpy.utils.unregister_class(common_classes.MousePointWidget)
bpy.utils.unregister_class(ops_line.SnapUtilitiesLine)
bpy.utils.unregister_class(preferences.SnapUtilitiesLinePreferences)