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

Method SetupProperties

code/AssetLib/SMD/SMDLoader.cpp:112–123  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Setup configuration properties

Source from the content-addressed store, hash-verified

110// ------------------------------------------------------------------------------------------------
111// Setup configuration properties
112void SMDImporter::SetupProperties(const Importer* pImp) {
113 // The
114 // AI_CONFIG_IMPORT_SMD_KEYFRAME option overrides the
115 // AI_CONFIG_IMPORT_GLOBAL_KEYFRAME option.
116 configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_SMD_KEYFRAME,-1);
117 if(static_cast<unsigned int>(-1) == configFrameID) {
118 configFrameID = pImp->GetPropertyInteger(AI_CONFIG_IMPORT_GLOBAL_KEYFRAME,0);
119 }
120
121 bLoadAnimationList = pImp->GetPropertyBool(AI_CONFIG_IMPORT_SMD_LOAD_ANIMATION_LIST, true);
122 noSkeletonMesh = pImp->GetPropertyBool(AI_CONFIG_IMPORT_NO_SKELETON_MESHES, false);
123}
124
125// ------------------------------------------------------------------------------------------------
126// 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