Refactoring model inside properties

Make a Property Group for blender
This commit is contained in:
2024-05-12 18:15:19 +02:00
parent 1f7d5b40e8
commit 4f539912eb
6 changed files with 17 additions and 3 deletions
+5 -1
View File
@@ -24,7 +24,7 @@ modules_class = [
# UI
GRAOU_PT_panel,
# Preference
GRAOU_AddonPreference
GRAOU_AddonPreference, FangeProperties
]
@@ -32,11 +32,15 @@ def register():
for cls in modules_class:
bpy.utils.register_class(cls)
bpy.types.Scene.graou_props = bpy.props.PointerProperty(type=FangeProperties)
def unregister():
for cls in reversed(modules_class):
bpy.utils.unregister_class(cls)
del bpy.types.Scene.graou_props
if __name__ == "__main__":
register()