mirror of
https://github.com/leozide/leocad
synced 2025-01-15 15:40:48 +01:00
Removed group separator being added to numbers when saving files.
This commit is contained in:
parent
ac06b213f2
commit
77683ccfa8
1 changed files with 2 additions and 4 deletions
|
@ -93,15 +93,13 @@ void lcPiece::SaveLDraw(QTextStream& Stream) const
|
||||||
|
|
||||||
Stream << "1 " << mColorCode << ' ';
|
Stream << "1 " << mColorCode << ' ';
|
||||||
|
|
||||||
QLocale Locale = QLocale::c();
|
|
||||||
QString Number;
|
|
||||||
|
|
||||||
const float* Matrix = mModelWorld;
|
const float* Matrix = mModelWorld;
|
||||||
float Numbers[12] = { Matrix[12], -Matrix[14], Matrix[13], Matrix[0], -Matrix[8], Matrix[4], -Matrix[2], Matrix[10], -Matrix[6], Matrix[1], -Matrix[9], Matrix[5] };
|
float Numbers[12] = { Matrix[12], -Matrix[14], Matrix[13], Matrix[0], -Matrix[8], Matrix[4], -Matrix[2], Matrix[10], -Matrix[6], Matrix[1], -Matrix[9], Matrix[5] };
|
||||||
for (int NumberIdx = 0; NumberIdx < 12; NumberIdx++)
|
for (int NumberIdx = 0; NumberIdx < 12; NumberIdx++)
|
||||||
{
|
{
|
||||||
Number = Locale.toString(Numbers[NumberIdx], 'f', 6);
|
QString Number = QString::number(Numbers[NumberIdx], 'f', 6);
|
||||||
int Dot = Number.indexOf('.');
|
int Dot = Number.indexOf('.');
|
||||||
|
|
||||||
if (Dot != -1)
|
if (Dot != -1)
|
||||||
{
|
{
|
||||||
while (Number.endsWith('0'))
|
while (Number.endsWith('0'))
|
||||||
|
|
Loading…
Reference in a new issue