mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Clear placeholder model mesh. Fixes #586.
This commit is contained in:
parent
2e2b1f0bb5
commit
3d77537408
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ void PieceInfo::SetModel(lcModel* Model, bool UpdateMesh, Project* CurrentProjec
|
||||||
{
|
{
|
||||||
mType = lcPieceInfoType::Model;
|
mType = lcPieceInfoType::Model;
|
||||||
mModel = Model;
|
mModel = Model;
|
||||||
|
delete mMesh;
|
||||||
|
mMesh = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy(mFileName, Model->GetProperties().mFileName.toLatin1().data(), sizeof(mFileName) - 1);
|
strncpy(mFileName, Model->GetProperties().mFileName.toLatin1().data(), sizeof(mFileName) - 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue