OSDN Git Service

update bone group export.
[meshio/meshio.git] / swig / blender / bl25.py
index 52a61b1..71f6636 100755 (executable)
@@ -239,6 +239,10 @@ class object:
         g.name=name
         g.color_set=color_set
 
+    @staticmethod
+    def boneGroups(o):
+        return object.getPose(o).bone_groups
+
 
 class modifier:
     @staticmethod
@@ -327,7 +331,7 @@ class material:
 
     @staticmethod
     def getTexture(material, index):
-        return material.texture_slots[index]
+        return material.texture_slots[index].texture
 
     @staticmethod
     def hasTexture(material):