Cleanup: run autopep8 on release/scripts/templates_py

This commit is contained in:
2022-04-20 15:11:22 +10:00
parent c2cdbe1e88
commit 38d8b088e7
12 changed files with 40 additions and 20 deletions

View File

@@ -19,10 +19,12 @@ class SimpleOperator(bpy.types.Operator):
main(context)
return {'FINISHED'}
def menu_func(self, context):
self.layout.operator(SimpleOperator.bl_idname, text=SimpleOperator.bl_label)
# Register and add to the "object" menu (required to also use F3 search "Simple Object Operator" for quick access)
# Register and add to the "object" menu (required to also use F3 search "Simple Object Operator" for quick access).
def register():
bpy.utils.register_class(SimpleOperator)
bpy.types.VIEW3D_MT_object.append(menu_func)