Adds a format scale multiplier for shape formats that use a default unit other than meters.

This commit is contained in:
OTHGMars 2020-03-22 02:25:12 -04:00
parent 340adae967
commit 76550a5859
6 changed files with 38 additions and 4 deletions

View file

@ -119,6 +119,7 @@ namespace ColladaUtils
bool removeRedundantMats; // Removes redundant materials.
eAnimTimingType animTiming; // How to import timing data as frames, seconds or milliseconds
S32 animFPS; // FPS value to use if timing is set in frames and the animations does not have an fps set
F32 formatScaleFactor; // Scale factor applied to convert the shape format default unit to meters
ImportOptions()
{
@ -156,6 +157,7 @@ namespace ColladaUtils
removeRedundantMats = true;
animTiming = Seconds;
animFPS = 30;
formatScaleFactor = 1.0f;
}
};