------------------------------------------------------------------------------------------------ Setup configuration properties
| 116 | // ------------------------------------------------------------------------------------------------ |
| 117 | // Setup configuration properties |
| 118 | void MDLImporter::SetupProperties(const Importer *pImp) { |
| 119 | configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_MDL_KEYFRAME, -1); |
| 120 | |
| 121 | // The |
| 122 | // AI_CONFIG_IMPORT_MDL_KEYFRAME option overrides the |
| 123 | // AI_CONFIG_IMPORT_GLOBAL_KEYFRAME option. |
| 124 | if (static_cast<unsigned int>(-1) == configFrameID) { |
| 125 | configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_GLOBAL_KEYFRAME, 0); |
| 126 | } |
| 127 | |
| 128 | // AI_CONFIG_IMPORT_MDL_COLORMAP - palette file |
| 129 | configPalette = pImp->GetPropertyString(AI_CONFIG_IMPORT_MDL_COLORMAP, "colormap.lmp"); |
| 130 | |
| 131 | // Read configuration specific to MDL (Half-Life 1). |
| 132 | mHL1ImportSettings.read_animations = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_ANIMATIONS, true); |
| 133 | if (mHL1ImportSettings.read_animations) { |
| 134 | mHL1ImportSettings.read_animation_events = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_ANIMATION_EVENTS, true); |
| 135 | mHL1ImportSettings.read_blend_controllers = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_BLEND_CONTROLLERS, true); |
| 136 | mHL1ImportSettings.read_sequence_transitions = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_SEQUENCE_TRANSITIONS, true); |
| 137 | } |
| 138 | mHL1ImportSettings.read_attachments = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_ATTACHMENTS, true); |
| 139 | mHL1ImportSettings.read_bone_controllers = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_BONE_CONTROLLERS, true); |
| 140 | mHL1ImportSettings.read_hitboxes = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_HITBOXES, true); |
| 141 | mHL1ImportSettings.read_misc_global_info = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_READ_MISC_GLOBAL_INFO, true); |
| 142 | mHL1ImportSettings.transform_coord_system = pImp->GetPropertyBool(AI_CONFIG_IMPORT_MDL_HL1_TRANSFORM_COORD_SYSTEM); |
| 143 | } |
| 144 | |
| 145 | // ------------------------------------------------------------------------------------------------ |
| 146 | // Get a list of all supported extensions |
nothing calls this directly
no test coverage detected