Fixed HTML export of models with only 1 step.

This commit is contained in:
leo 2016-05-29 16:42:47 +00:00
parent 7ebcc16c41
commit 1e8adcd880
2 changed files with 2 additions and 7 deletions

View file

@ -2239,7 +2239,7 @@ void lcLibraryMeshData::AddMeshDataNoDuplicateCheck(const lcLibraryMeshData& Dat
Sections.Add(DstSection);
}
DstSection->mIndices.SetGrow(DstSection->mIndices.GetSize());
DstSection->mIndices.SetGrow(lcMin(DstSection->mIndices.GetSize(), 8 * 1024 * 1024));
DstSection->mIndices.AllocGrow(SrcSection->mIndices.GetSize());
if (!SrcSection->mTexture)

View file

@ -1167,12 +1167,7 @@ void lcModel::SaveStepImages(const QString& BaseName, int Width, int Height, lcS
SetTemporaryStep(Step);
View.OnDraw();
QString FileName;
if (Start == End)
FileName = BaseName;
else
FileName = BaseName.arg(Step, 2, 10, QLatin1Char('0'));
QString FileName = BaseName.arg(Step, 2, 10, QLatin1Char('0'));
if (!Context->SaveRenderToTextureImage(FileName, Width, Height))
break;