David Catuhe 10 年之前
父节点
当前提交
708d692c18
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Exporters/Blender/io_export_babylon.py

+ 4 - 4
Exporters/Blender/io_export_babylon.py

@@ -597,14 +597,14 @@ class Mesh(FCurveAnimatable):
             objArmature = object.find_armature()
             if objArmature != None:
                 hasSkeleton = True
-            i = 0
+                i = 0
                 for obj in scene.objects:
                     if obj.type == "ARMATURE":
                         if obj == objArmature:
-                        self.skeletonId = i
+                            self.skeletonId = i
                             break
-                    else:
-                        i += 1
+                        else:
+                            i += 1
          
         # detect if any textures in the material slots, which would mean UV mapping is required                         
         uvRequired = False