forked from bartvdbraak/blender
Python Templates: Silence _MT_ warning in pie menu template
This commit is contained in:
parent
da25748be7
commit
0519bb584b
@ -4,7 +4,7 @@ from bpy.types import Menu
|
|||||||
# spawn an edit mode selection pie (run while object is in edit mode to get a valid output)
|
# spawn an edit mode selection pie (run while object is in edit mode to get a valid output)
|
||||||
|
|
||||||
|
|
||||||
class VIEW3D_PIE_template(Menu):
|
class VIEW3D_MT_PIE_template(Menu):
|
||||||
# label is displayed at the center of the pie menu.
|
# label is displayed at the center of the pie menu.
|
||||||
bl_label = "Select Mode"
|
bl_label = "Select Mode"
|
||||||
|
|
||||||
@ -18,14 +18,14 @@ class VIEW3D_PIE_template(Menu):
|
|||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
bpy.utils.register_class(VIEW3D_PIE_template)
|
bpy.utils.register_class(VIEW3D_MT_PIE_template)
|
||||||
|
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
bpy.utils.unregister_class(VIEW3D_PIE_template)
|
bpy.utils.unregister_class(VIEW3D_MT_PIE_template)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
register()
|
register()
|
||||||
|
|
||||||
bpy.ops.wm.call_menu_pie(name="VIEW3D_PIE_template")
|
bpy.ops.wm.call_menu_pie(name="VIEW3D_MT_PIE_template")
|
||||||
|
Loading…
Reference in New Issue
Block a user