Added support for both the old autoScaleTransistionWidthRatio (note typo) and newly fixed autoScaleTransitionWidthRatio in the .osg parsing

This commit is contained in:
Robert Osfield
2008-08-05 10:20:20 +00:00
parent af9ccc5596
commit 24b608cacb

View File

@@ -140,7 +140,8 @@ bool AutoTransform_readLocalData(Object& obj, Input& fr)
iteratorAdvanced = true;
}
if (fr.matchSequence("autoScaleTransistionWidthRatio %f"))
if (fr.matchSequence("autoScaleTransistionWidthRatio %f") ||
fr.matchSequence("autoScaleTransitionWidthRatio %f"))
{
float ratio;
fr[1].getFloat(ratio);