-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmenus.py
34 lines (25 loc) · 752 Bytes
/
menus.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import bpy
from bpy.types import (
Context,
Menu,
UILayout
)
class BONEWIDGET_MT_bw_specials(Menu):
bl_label = "Bone Widget Specials"
def draw(self, context: 'Context'):
layout: 'UILayout' = self.layout
layout.operator("bonewidget.add_widgets", icon="ADD",
text="Add Widget to library")
layout.operator("bonewidget.remove_widgets", icon="REMOVE",
text="Remove Widget from library")
classes = (
BONEWIDGET_MT_bw_specials,
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
def unregister():
from bpy.utils import unregister_class
for cls in classes:
unregister_class(cls)