use __slots__ for fbx exporter classes, no functional change.

This commit is contained in:
Campbell Barton
2010-11-02 00:39:07 +00:00
parent 562731fc12
commit 0e588cbf10

View 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)