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

Method SetupProperties

code/PostProcessing/ScaleProcess.cpp:70–80  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

68
69// ------------------------------------------------------------------------------------------------
70void ScaleProcess::SetupProperties( const Importer* pImp ) {
71 // User scaling
72 mScale = pImp->GetPropertyFloat( AI_CONFIG_GLOBAL_SCALE_FACTOR_KEY, 1.0f );
73
74 // File scaling * Application Scaling
75 float importerScale = pImp->GetPropertyFloat( AI_CONFIG_APP_SCALE_KEY, 1.0f );
76
77 // apply scale to the scale
78 // helps prevent bugs with backward compatibility for anyone using normal scaling.
79 mScale *= importerScale;
80}
81
82// ------------------------------------------------------------------------------------------------
83void ScaleProcess::Execute( aiScene* pScene ) {

Callers

nothing calls this directly

Calls 1

GetPropertyFloatMethod · 0.45

Tested by

no test coverage detected