Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2019-06-28 15:47:32 +0300
committerDalai Felinto <dfelinto@gmail.com>2019-06-28 15:57:16 +0300
commit0519bb584bbc8bc933472ffd70cf8326b3599297 (patch)
tree66773462c0712b42fcbc03b503cefd8f359568a1 /release/scripts/templates_py
parentda25748be7e7c55cff30d424f9e6922a9b186770 (diff)
Python Templates: Silence _MT_ warning in pie menu template
Diffstat (limited to 'release/scripts/templates_py')
-rw-r--r--release/scripts/templates_py/ui_pie_menu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/templates_py/ui_pie_menu.py b/release/scripts/templates_py/ui_pie_menu.py
index 0c431ca50ff..209b0f8ca30 100644
--- a/release/scripts/templates_py/ui_pie_menu.py
+++ b/release/scripts/templates_py/ui_pie_menu.py
@@ -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)
-class VIEW3D_PIE_template(Menu):
+class VIEW3D_MT_PIE_template(Menu):
# label is displayed at the center of the pie menu.
bl_label = "Select Mode"
@@ -18,14 +18,14 @@ class VIEW3D_PIE_template(Menu):
def register():
- bpy.utils.register_class(VIEW3D_PIE_template)
+ bpy.utils.register_class(VIEW3D_MT_PIE_template)
def unregister():
- bpy.utils.unregister_class(VIEW3D_PIE_template)
+ bpy.utils.unregister_class(VIEW3D_MT_PIE_template)
if __name__ == "__main__":
register()
- bpy.ops.wm.call_menu_pie(name="VIEW3D_PIE_template")
+ bpy.ops.wm.call_menu_pie(name="VIEW3D_MT_PIE_template")