mirror of
https://github.com/leozide/leocad
synced 2024-12-28 22:23:35 +01:00
Fixed subparts not updating stud style.
This commit is contained in:
parent
728980c97a
commit
03b9c75d9e
3 changed files with 2 additions and 3 deletions
|
@ -1213,7 +1213,6 @@ void lcApplication::ShowPreferencesDialog()
|
||||||
lcGetPiecesLibrary()->LoadColors();
|
lcGetPiecesLibrary()->LoadColors();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
gMainWindow->SetShadingMode(Options.Preferences.mShadingMode);
|
gMainWindow->SetShadingMode(Options.Preferences.mShadingMode);
|
||||||
lcView::UpdateAllViews();
|
lcView::UpdateAllViews();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1580,7 +1580,7 @@ void lcPiecesLibrary::SetStudStyle(lcStudStyle StudStyle, bool Reload)
|
||||||
{
|
{
|
||||||
lcLibraryPrimitive* Primitive = PrimitiveIt.second;
|
lcLibraryPrimitive* Primitive = PrimitiveIt.second;
|
||||||
|
|
||||||
if (Primitive->mStudStyle)
|
if (Primitive->mStudStyle || Primitive->mMeshData.mHasStyleStud)
|
||||||
Primitive->Unload();
|
Primitive->Unload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1625,7 +1625,7 @@ bool lcMeshLoader::ReadMeshData(lcFile& File, const lcMatrix44& CurrentTransform
|
||||||
else
|
else
|
||||||
Library->GetPrimitiveFile(Primitive, FileCallback);
|
Library->GetPrimitiveFile(Primitive, FileCallback);
|
||||||
|
|
||||||
mMeshData.mHasStyleStud |= Primitive->mStudStyle;
|
mMeshData.mHasStyleStud |= Primitive->mStudStyle | Primitive->mMeshData.mHasStyleStud;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Library->GetPieceFile(FileName, FileCallback);
|
Library->GetPieceFile(FileName, FileCallback);
|
||||||
|
|
Loading…
Reference in a new issue