Translation Updates.

- Added addon_preferences so we can save users preferences into a json file.
- Made translation slightly simpler

This mostly works just have to figure out why we can't update description on reload (There only update on blender restart).
This commit is contained in:
Yusarina
2024-07-08 09:13:52 +01:00
parent 03a24650f1
commit eaafd3bb69
7 changed files with 115 additions and 58 deletions
+6 -3
View File
@@ -1,5 +1,5 @@
import bpy
import typing
from typing import List, Type
# List to store the classes to register
__bl_classes = []
@@ -21,8 +21,11 @@ def register_property(prop):
def register_properties():
for prop in __bl_props:
setattr(prop[0], prop[1], prop[2])
if isinstance(prop[2], bpy.props._PropertyDeferred):
setattr(prop[0], prop[1], prop[2])
else:
prop()
def unregister_properties():
for prop in reversed(__bl_props):
delattr(prop[0], prop[1])