[Bf-extensions-cvs] [0b27d3e5] master: system_blend_info: update 2.8
meta-androcto
noreply at git.blender.org
Fri May 24 01:31:13 CEST 2019
Commit: 0b27d3e57a0e5841bbaa476083172355d78b66fb
Author: meta-androcto
Date: Fri May 24 09:30:51 2019 +1000
Branches: master
https://developer.blender.org/rBA0b27d3e57a0e5841bbaa476083172355d78b66fb
system_blend_info: update 2.8
===================================================================
M system_blend_info.py
===================================================================
diff --git a/system_blend_info.py b/system_blend_info.py
index 65b1d9f9..63fbee5a 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()
More information about the Bf-extensions-cvs
mailing list