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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2019-05-24 02:30:51 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-05-24 02:30:51 +0300
commit0b27d3e57a0e5841bbaa476083172355d78b66fb (patch)
tree1fc1dc43f454801adfc4339b4db5fa83bb956199 /system_blend_info.py
parentf3141a0ce81cf4d247ee13dd12b4d30bd0d83140 (diff)
system_blend_info: update 2.8
Diffstat (limited to 'system_blend_info.py')
-rw-r--r--system_blend_info.py19
1 files changed, 12 insertions, 7 deletions
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()