mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-09 09:07:52 +01:00
Merge branch 'master' into feat/renderers-cleanup
This commit is contained in:
@@ -955,8 +955,7 @@ std::vector<TSubModel *> const &TSubModel::text_letters(std::string const &Text)
|
||||
{
|
||||
// the sequence is prepared once for each text the display shows. the texts of the model instances don't change,
|
||||
// so drawing a display afterwards costs a single lookup, however many instances and passes take turns
|
||||
auto const prepared{m_textlayouts.find(Text)};
|
||||
if (prepared != m_textlayouts.end())
|
||||
if (auto const prepared{m_textlayouts.find(Text)}; prepared != m_textlayouts.end())
|
||||
{
|
||||
return prepared->second;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user