Merge branch 'main' into Digitigrade-legs-tool

This commit is contained in:
Onan Chew
2024-07-24 17:45:37 -04:00
committed by GitHub
18 changed files with 411 additions and 159 deletions
+6 -3
View File
@@ -1,5 +1,6 @@
import bpy
import typing
from typing import List, Type
# List to store the classes to register
__bl_classes = []
@@ -21,8 +22,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])
@@ -109,4 +113,3 @@ def toposort(deps_dict):
deps_dict = {value : deps_dict[value] - sorted_values for value in unsorted}
return sorted_list