diff options
Diffstat (limited to 'release/scripts/DirectX8Exporter.py')
-rw-r--r-- | release/scripts/DirectX8Exporter.py | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/release/scripts/DirectX8Exporter.py b/release/scripts/DirectX8Exporter.py index 4d056e263f4..b65c79265c4 100644 --- a/release/scripts/DirectX8Exporter.py +++ b/release/scripts/DirectX8Exporter.py @@ -304,19 +304,14 @@ class xExport: return parent_list def getChildren(self,obj): - children_list = [] - for object in Blender.Scene.GetCurrent().objects: #Object.Get(): - pare = object.parent - if pare == obj : - children_list.append(object) - return children_list + obs = Blender.Scene.GetCurrent().objects + return children_list = [ ob for ob in obs if ob.parent == obj ] def getArmChildren(self,obj): - for object in Blender.Scene.GetCurrent().objects: #Object.Get(): - pare = object.parent - if pare == obj : - return object - + for ob in Blender.Scene.GetCurrent().objects: #Object.Get(): + if ob.parent == obj : + return ob + def getLocMat(self, obj): pare = obj.parent mat = obj.matrixWorld |