Changeset View
Changeset View
Standalone View
Standalone View
io_scene_ms3d/ms3d_export.py
| Context not available. | |||||
| ############################################################################### | ############################################################################### | ||||
| class Ms3dExporter(): | class Ms3dExporter: | ||||
| """ | """ | ||||
| Load a MilkShape3D MS3D File | Load a MilkShape3D MS3D File | ||||
| """ | """ | ||||
| Context not available. | |||||
| blender_context.scene.objects.active = self.active_object | blender_context.scene.objects.active = self.active_object | ||||
| if ((not blender_context.scene.objects.active) | if ((not blender_context.scene.objects.active) | ||||
| and (blender_context.selected_objects)): | and blender_context.selected_objects): | ||||
| blender_context.scene.objects.active \ | blender_context.scene.objects.active \ | ||||
| = blender_context.selected_objects[0] | = blender_context.selected_objects[0] | ||||
| Context not available. | |||||
| ########################################################################### | ########################################################################### | ||||
| def geometry_correction(self, value): | def geometry_correction(self, value): | ||||
| return (value[1], value[2], value[0]) | return value[1], value[2], value[0] | ||||
| ########################################################################### | ########################################################################### | ||||
| def joint_correction(self, value): | def joint_correction(self, value): | ||||
| return (-value[0], value[2], value[1]) | return -value[0], value[2], value[1] | ||||
| ########################################################################### | ########################################################################### | ||||
| Context not available. | |||||