MCPcopy Create free account
hub / github.com/assimp/assimp / SetupProperties

Method SetupProperties

code/AssetLib/Unreal/UnrealLoader.cpp:184–195  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Setup configuration properties for the loader

Source from the content-addressed store, hash-verified

182// ------------------------------------------------------------------------------------------------
183// Setup configuration properties for the loader
184void UnrealImporter::SetupProperties(const Importer *pImp) {
185 // The
186 // AI_CONFIG_IMPORT_UNREAL_KEYFRAME option overrides the
187 // AI_CONFIG_IMPORT_GLOBAL_KEYFRAME option.
188 mConfigFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_UNREAL_KEYFRAME, -1);
189 if (static_cast<unsigned int>(-1) == mConfigFrameID) {
190 mConfigFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_GLOBAL_KEYFRAME, 0);
191 }
192
193 // AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS, default is true
194 mConfigHandleFlags = (0 != pImp->GetPropertyInteger(AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS, 1));
195}
196
197// ------------------------------------------------------------------------------------------------
198// Imports the given file into the given scene structure.

Callers

nothing calls this directly

Calls 1

GetPropertyIntegerMethod · 0.45

Tested by

no test coverage detected