mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
internal bridge speed
This commit is contained in:
@@ -212,10 +212,12 @@ void OptionsGroup::append_line(const Line& line)
|
||||
//BBS: get line for opt_key
|
||||
Line* OptionsGroup::get_line(const std::string& opt_key)
|
||||
{
|
||||
for (int index = 0; index < m_lines.size(); index++)
|
||||
for (auto& l : m_lines)
|
||||
{
|
||||
if (m_lines[index].get_first_option_key() == opt_key)
|
||||
return &(m_lines[index]);
|
||||
if(l.is_separator())
|
||||
continue;
|
||||
if (l.get_first_option_key() == opt_key)
|
||||
return &l;
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user