David Catuhe hace 10 años
padre
commit
708d692c18
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  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()
             objArmature = object.find_armature()
             if objArmature != None:
             if objArmature != None:
                 hasSkeleton = True
                 hasSkeleton = True
-            i = 0
+                i = 0
                 for obj in scene.objects:
                 for obj in scene.objects:
                     if obj.type == "ARMATURE":
                     if obj.type == "ARMATURE":
                         if obj == objArmature:
                         if obj == objArmature:
-                        self.skeletonId = i
+                            self.skeletonId = i
                             break
                             break
-                    else:
-                        i += 1
+                        else:
+                            i += 1
          
          
         # detect if any textures in the material slots, which would mean UV mapping is required                         
         # detect if any textures in the material slots, which would mean UV mapping is required                         
         uvRequired = False
         uvRequired = False