mirror of
https://github.com/leozide/leocad.git
synced 2026-07-27 19:56:49 +00:00
Fixed subparts not updating stud style.
This commit is contained in:
@@ -1213,7 +1213,6 @@ void lcApplication::ShowPreferencesDialog()
|
||||
lcGetPiecesLibrary()->LoadColors();
|
||||
}
|
||||
|
||||
|
||||
gMainWindow->SetShadingMode(Options.Preferences.mShadingMode);
|
||||
lcView::UpdateAllViews();
|
||||
}
|
||||
|
||||
@@ -1580,7 +1580,7 @@ void lcPiecesLibrary::SetStudStyle(lcStudStyle StudStyle, bool Reload)
|
||||
{
|
||||
lcLibraryPrimitive* Primitive = PrimitiveIt.second;
|
||||
|
||||
if (Primitive->mStudStyle)
|
||||
if (Primitive->mStudStyle || Primitive->mMeshData.mHasStyleStud)
|
||||
Primitive->Unload();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1625,7 +1625,7 @@ bool lcMeshLoader::ReadMeshData(lcFile& File, const lcMatrix44& CurrentTransform
|
||||
else
|
||||
Library->GetPrimitiveFile(Primitive, FileCallback);
|
||||
|
||||
mMeshData.mHasStyleStud |= Primitive->mStudStyle;
|
||||
mMeshData.mHasStyleStud |= Primitive->mStudStyle | Primitive->mMeshData.mHasStyleStud;
|
||||
}
|
||||
else
|
||||
Library->GetPieceFile(FileName, FileCallback);
|
||||
|
||||
Reference in New Issue
Block a user