use __slots__ for fbx exporter classes, no functional change.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 2 Nov 2010 00:39:07 +0000 (00:39 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 2 Nov 2010 00:39:07 +0000 (00:39 +0000)
release/scripts/op/io_scene_fbx/export_fbx.py

index 4859e87620f8ee58cb6b6100d13f86854b529977..c9c9c81ac01a579bcb9e1be306b89a823e9c0e20 100644 (file)
@@ -382,18 +382,17 @@ def save(operator, context, filepath="",
 
     # ----------------------------------------------
     # storage classes
-    class my_bone_class:
-        __slots__ =(\
-          'blenName',\
-          'blenBone',\
-          'blenMeshes',\
-          'restMatrix',\
-          'parent',\
-          'blenName',\
-          'fbxName',\
-          'fbxArm',\
-          '__pose_bone',\
-          '__anim_poselist')
+    class my_bone_class(object):
+        __slots__ =("blenName",
+                    "blenBone",
+                    "blenMeshes",
+                    "restMatrix",
+                    "parent",
+                    "blenName",
+                    "fbxName",
+                    "fbxArm",
+                    "__pose_bone",
+                    "__anim_poselist")
 
         def __init__(self, blenBone, fbxArm):
 
@@ -474,7 +473,25 @@ def save(operator, context, filepath="",
             self.__anim_poselist.clear()
 
 
-    class my_object_generic:
+    class my_object_generic(object):
+        __slots__ =("fbxName",
+                    "blenObject",
+                    "blenData",
+                    "origData",
+                    "blenTextures",
+                    "blenMaterials",
+                    "blenMaterialList",
+                    "blenAction",
+                    "blenActionList",
+                    "fbxGroupNames",
+                    "fbxParent",
+                    "fbxBoneParent",
+                    "fbxBones",
+                    "fbxArm",
+                    "matrixWorld",
+                    "__anim_poselist",
+                    )
+
         # Other settings can be applied for each type - mesh, armature etc.
         def __init__(self, ob, matrixWorld = None):
             self.fbxName = sane_obname(ob)