less couts
This commit is contained in:
parent
c0de84ab00
commit
244abc777a
1 changed files with 0 additions and 3 deletions
|
@ -54,13 +54,11 @@ void Atlas::setup(string _fontPath){
|
|||
<< "\tmax:" << axis.maxValue
|
||||
<< "\t:default:" << axis.defaultValue << endl;
|
||||
variationAxesAvailable.push_back(axis);
|
||||
cout << __LINE__ << endl;
|
||||
addVariations({
|
||||
{axis.name, axis.minValue},
|
||||
{axis.name, axis.maxValue}
|
||||
//{axis.name, axis.defaultValue}
|
||||
});
|
||||
cout << __LINE__ << endl;
|
||||
}
|
||||
ofLogNotice("Atlas::setup()") << "retrieved variation axes";
|
||||
}else{
|
||||
|
@ -107,7 +105,6 @@ void Atlas::addVariations(vector <FontVariation> variations){
|
|||
const FontVariation & a = variationExtremes[i];
|
||||
const FontVariation & b = variationExtremes[i + 1];
|
||||
float diff = b.value - a.value;
|
||||
cout << __LINE__ << endl;
|
||||
int stepAmount = ceil(diff / settings.maxInterpolationStepSize);
|
||||
float step = diff / stepAmount;
|
||||
float value = a.value + step;
|
||||
|
|
Loading…
Reference in a new issue