- Fixed issue where blender would error when exiting due to property being register twice.
- Fixes missing strings.
- Attempt at fixes properties not clearing correctly.
- Updated Japanese json file with all latest strings.
This commit is contained in:
Yusarina
2024-11-26 04:16:03 +00:00
parent bb77d54a49
commit 6484adedaa
4 changed files with 249 additions and 86 deletions
+10 -1
View File
@@ -26,10 +26,19 @@ def register_properties():
setattr(prop[0], prop[1], prop[2])
else:
prop()
def clear_registration():
__bl_classes.clear()
__bl_ordered_classes.clear()
__bl_props.clear()
def unregister_properties():
for prop in reversed(__bl_props):
delattr(prop[0], prop[1])
try:
delattr(prop[0], prop[1])
except AttributeError:
continue
clear_registration()
#- @989onan had to add this from Cats. This is extremely important else you will be screamed at by register order issues!
# Find order to register to solve dependencies