Updated Operations and Properties
- Updated Operations and Properties with tpying and logging. I have not updated translation files, this is because i want to gut MMD Tools system and replace it with our own, however I want to make MMD Tools more simple and ajust it to our needs only. This is going to take a while and my aim for this is Alpha 4, also the MMD Translation system hurt my head.... - Fixes a couple of bugs as well, with quick access and the PMX importer.
This commit is contained in:
@@ -41,9 +41,11 @@ class FnModel:
|
||||
Optional[bpy.types.Object]: The root object of the model. If the object is not a part of a model, None is returned.
|
||||
Generally, the root object is a object with type == "EMPTY" and mmd_type == "ROOT".
|
||||
"""
|
||||
while obj is not None and obj.mmd_type != "ROOT":
|
||||
while obj is not None:
|
||||
if hasattr(obj, 'mmd_type') and obj.mmd_type == "ROOT":
|
||||
return obj
|
||||
obj = obj.parent
|
||||
return obj
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def find_armature_object(root_object: bpy.types.Object) -> Optional[bpy.types.Object]:
|
||||
|
||||
Reference in New Issue
Block a user