improves build to also include the version into the bl_info

This commit is contained in:
Michel Fedde 2024-01-30 16:20:37 +01:00
parent 6a89168707
commit bc6734a349
3 changed files with 25 additions and 11 deletions

View file

@ -1,3 +1,12 @@
bl_info = {
"name": "Bake ID Mask",
"author": "iedSoftworks",
"description": "",
# !VERSION
"blender": (2, 80, 0),
"category": "Object"
}
import bpy
from . panels.panel_options import BakeToIDOptionsPanel
@ -7,14 +16,6 @@ from . panels.panel import BakeToIDMapPanel
from . panels.panel_info import BakeToIDInfoPanel
from . properties.bake_to_id import BakeToIDProperties
bl_info = {
"name": "Bake ID Mask",
"author": "iedSoftworks",
"description": "",
"blender": (2, 80, 0),
"category": "Object"
}
classes = (
BakeToIDMapOperator,
BakeToIDMapPanel,
@ -24,13 +25,14 @@ classes = (
BakeToIDProperties,
)
def register():
def register():
for cls in classes:
bpy.utils.register_class(cls)
setattr(bpy.types.Scene, 'bake_to_id_props', bpy.props.PointerProperty(type=BakeToIDProperties))
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)