mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 05:23:33 +02:00
Fix numerical precision warning
This commit is contained in:
parent
afa44dccf6
commit
eeb13fe17f
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ private:
|
||||||
static QVariantMap zipNonZeroValues(const QStringList& keys, const QVector<float>& values) {
|
static QVariantMap zipNonZeroValues(const QStringList& keys, const QVector<float>& values) {
|
||||||
QVariantMap out;
|
QVariantMap out;
|
||||||
for (int i=1; i < values.size(); i++) {
|
for (int i=1; i < values.size(); i++) {
|
||||||
if (fabs(values[i]) > 1.0e-6) {
|
if (fabs(values[i]) > 1.0e-6f) {
|
||||||
out[keys.value(i)] = values[i];
|
out[keys.value(i)] = values[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue