-> Short names fix

Short names (less than 8 characters) were not getting exported
correctly for blender objects with no FLT props attached
This commit is contained in:
Geoffrey Bantle 2008-03-05 01:31:00 +00:00
parent 4ba2162e63
commit 80354af6fa

@ -1016,6 +1016,8 @@ class FLTNode(Node):
self.header.fw.write_short(self.opcode)
self.header.fw.write_ushort(recordlen[self.opcode])
exportdict = FLT_Records[self.opcode].copy()
if self.object:
self.props['3t8!id'] = self.object.name[:7]
for key in exportdict.keys():
if self.props.has_key(key):
exportdict[key] = self.props[key]