18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-02 05:02:45 +01:00

Merge lang/editor-track-pl into ui/editor-first-steps

# Conflicts:
#	application/editormodeselftestexpect.cpp
This commit is contained in:
maj00r
2026-11-24 18:48:52 +01:00
20 changed files with 256 additions and 44 deletions
+8
View File
@@ -15,6 +15,7 @@ http://mozilla.org/MPL/2.0/.
#include "stdafx.h"
#include "application/editormode.h"
#include "application/editoruilayer.h"
#include "application/editormodeselftest.h"
#include "application/editormodeshared.h"
#include "editor/editorFormat.hpp"
#include "editor/editorGeometry.hpp"
@@ -2099,8 +2100,15 @@ editor_mode::selftest_result editor_mode::selftest_props(std::string const &Comm
// the set made of the tracks, also of one, and the last of them selected, as the set stays the selection only with it
m_track_set.clear();
for (std::string name; Words >> name;)
{
if (auto *track{simulation::Paths.find(name)}; track != nullptr && false == track->m_editorremoved)
{
m_track_set.push_back(track);
continue;
}
editor_selftest::fail();
WriteLog("SELFTEST FAIL tracksetdelete: no track " + name);
}
m_node = m_track_set.empty() ? nullptr : m_track_set.back();
m_track_point = {};
ui()->set_node(m_node);