------------------------------------------------------------------------------------------------ Setup configuration properties
| 435 | // ------------------------------------------------------------------------------------------------ |
| 436 | // Setup configuration properties |
| 437 | void MD3Importer::SetupProperties(const Importer *pImp) { |
| 438 | // The |
| 439 | // AI_CONFIG_IMPORT_MD3_KEYFRAME option overrides the |
| 440 | // AI_CONFIG_IMPORT_GLOBAL_KEYFRAME option. |
| 441 | configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_MD3_KEYFRAME, -1); |
| 442 | if (static_cast<unsigned int>(-1) == configFrameID) { |
| 443 | configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_GLOBAL_KEYFRAME, 0); |
| 444 | } |
| 445 | |
| 446 | // AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART |
| 447 | configHandleMP = (0 != pImp->GetPropertyInteger(AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART, 1)); |
| 448 | |
| 449 | // AI_CONFIG_IMPORT_MD3_SKIN_NAME |
| 450 | configSkinFile = (pImp->GetPropertyString(AI_CONFIG_IMPORT_MD3_SKIN_NAME, "default")); |
| 451 | |
| 452 | // AI_CONFIG_IMPORT_MD3_LOAD_SHADERS |
| 453 | configLoadShaders = (pImp->GetPropertyBool(AI_CONFIG_IMPORT_MD3_LOAD_SHADERS, true)); |
| 454 | |
| 455 | // AI_CONFIG_IMPORT_MD3_SHADER_SRC |
| 456 | configShaderFile = (pImp->GetPropertyString(AI_CONFIG_IMPORT_MD3_SHADER_SRC, "")); |
| 457 | |
| 458 | // AI_CONFIG_FAVOUR_SPEED |
| 459 | configSpeedFlag = (0 != pImp->GetPropertyInteger(AI_CONFIG_FAVOUR_SPEED, 0)); |
| 460 | } |
| 461 | |
| 462 | // ------------------------------------------------------------------------------------------------ |
| 463 | // Try to read the skin for a MD3 file |
nothing calls this directly
no test coverage detected