diff --git a/system_blend_info.py b/system_blend_info.py index 65b1d9f988443499ab332a8f81921735c0d2efb1..63fbee5a6228b6b369dcd31b1c3d5752751fab55 100644 --- a/system_blend_info.py +++ b/system_blend_info.py @@ -23,8 +23,8 @@ bl_info = { "name": "Scene Information", "author": "uselessdreamer", - "version": (0,3), - "blender": (2, 59, 0), + "version": (0, 3, 1), + "blender": (2, 80, 0), "location": "Properties > Scene > Blend Info Panel", "description": "Show information about the .blend", "warning": "", @@ -198,16 +198,21 @@ class OBJECT_PT_blendinfo(bpy.types.Panel): row.label(text=quantity_string(num, "Text", "Texts"), icon='TEXT') +# Register +classes = [ + OBJECT_PT_blendinfo +] def register(): - bpy.utils.register_module(__name__) - - pass + from bpy.utils import register_class + for cls in classes: + register_class(cls) def unregister(): - bpy.utils.unregister_module(__name__) + from bpy.utils import unregister_class + for cls in reversed(classes): + unregister_class(cls) - pass if __name__ == "__main__": register()