mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Fixed HTML export of models with only 1 step.
This commit is contained in:
parent
7ebcc16c41
commit
1e8adcd880
2 changed files with 2 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue