Code/Editor

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-16 15:56:36 -07:00
parent e6b5342c07
commit 2963739288
51 changed files with 286 additions and 337 deletions
+3 -3
View File
@@ -45,7 +45,7 @@ bool GetPositionFromString(QString er, float* x, float* y, float* z)
}
if (ind > 0)
{
*x = er.mid(0, ind).toDouble();
*x = er.mid(0, ind).toFloat();
er = er.mid(ind);
er.remove(QRegExp("^[ ,]*"));
@@ -57,12 +57,12 @@ bool GetPositionFromString(QString er, float* x, float* y, float* z)
}
if (ind > 0)
{
*y = er.mid(0, ind).toDouble();
*y = er.mid(0, ind).toFloat();
er = er.mid(ind);
er.remove(QRegExp("^[ ,]*"));
if (er.length())
{
*z = er.toDouble();
*z = er.toFloat();
return true;
}
}