[Bf-extensions-cvs] [22c9a998] master: Added the Inset Straight Skeleton command to edit faces menu when installed.

Howard Trickey noreply at git.blender.org
Tue Sep 17 15:35:21 CEST 2019


Commit: 22c9a9983e6e348b749bd06854d1fffb19400b12
Author: Howard Trickey
Date:   Tue Sep 17 09:33:59 2019 -0400
Branches: master
https://developer.blender.org/rBA22c9a9983e6e348b749bd06854d1fffb19400b12

Added the Inset Straight Skeleton command to edit faces menu when installed.

===================================================================

M	mesh_inset/__init__.py

===================================================================

diff --git a/mesh_inset/__init__.py b/mesh_inset/__init__.py
index 8702b390..e8338d92 100644
--- a/mesh_inset/__init__.py
+++ b/mesh_inset/__init__.py
@@ -317,9 +317,13 @@ def remove_dups(vs):
     seen = set()
     return [x for x in vs if not (x in seen or seen.add(x))]
 
+def menu(self, context):
+    self.layout.operator("mesh.insetstraightskeleton", text="Inset Straight Skeleton")
 
 def register():
     bpy.utils.register_class(MESH_OT_InsetStraightSkeleton)
+    bpy.types.VIEW3D_MT_edit_mesh_faces.append(menu)
 
 def unregister():
     bpy.utils.unregister_class(MESH_OT_InsetStraightSkeleton)
+    bpy.types.VIEW3D_MT_edit_mesh_faces.remove(menu)



More information about the Bf-extensions-cvs mailing list