system_blend_info: update 2.8

This commit is contained in:
Brendon Murphy 2019-05-24 09:30:51 +10:00
parent f3141a0ce8
commit 0b27d3e57a
1 changed files with 12 additions and 7 deletions

View File

@ -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()