Changeset View
Changeset View
Standalone View
Standalone View
io_export_unreal_psk_psa.py
| Context not available. | |||||
| return data | return data | ||||
| def GetMatByIndex(self, mat_index): | def GetMatByIndex(self, mat_index): | ||||
| if mat_index >= 0 and len(self.Materials.Data) > mat_index: | if 0 <= mat_index < len(self.Materials.Data): | ||||
| return self.Materials.Data[mat_index] | return self.Materials.Data[mat_index] | ||||
| else: | else: | ||||
| m = VMaterial() | m = VMaterial() | ||||
| Context not available. | |||||
| self.RawKeys.UpdateHeader() | self.RawKeys.UpdateHeader() | ||||
| def GetBoneByIndex(self, bone_index): | def GetBoneByIndex(self, bone_index): | ||||
| if bone_index >= 0 and len(self.Bones.Data) > bone_index: | if 0 <= bone_index < len(self.Bones.Data): | ||||
| return self.Bones.Data[bone_index] | return self.Bones.Data[bone_index] | ||||
| def IsEmpty(self): | def IsEmpty(self): | ||||
| Context not available. | |||||