mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Fixed preview toolbar not updating. Fixes #895.
This commit is contained in:
parent
c84a730ce4
commit
2aa388edad
1 changed files with 9 additions and 0 deletions
|
@ -2015,6 +2015,15 @@ void lcMainWindow::UpdateSelectedObjects(bool SelectionChanged)
|
|||
|
||||
mPropertiesWidget->Update(Selection, Focus);
|
||||
|
||||
if (Focus && Focus->IsPiece())
|
||||
{
|
||||
lcPiece* Piece = (lcPiece*)Focus;
|
||||
int ColorIndex = Piece->GetColorIndex();
|
||||
quint32 ColorCode = lcGetColorCode(ColorIndex);
|
||||
|
||||
PreviewPiece(Piece->mPieceInfo->mFileName, ColorCode, false);
|
||||
}
|
||||
|
||||
QString Message;
|
||||
|
||||
if ((Selection.GetSize() == 1) && Focus)
|
||||
|
|
Loading…
Reference in a new issue