17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 08:02:10 +01:00

Catenary editor: keep catenary parts out of node editing, pick and drag anchor poles

This commit is contained in:
2026-10-26 19:51:15 +01:00
parent 5f93c7c20d
commit d794b1e736
10 changed files with 142 additions and 7 deletions

View File

@@ -392,6 +392,15 @@ bool node_layers::editable(basic_node const *Node, std::string *Reason) const
{
return false;
}
if (Node->m_catenary)
{
// moved, copied or deleted by itself it would part from the catenary which keeps it (and is rebuilt from its own file)
if (Reason != nullptr)
{
*Reason = STR_C("it's a part of the catenary, which is changed with the Catenary tool (F6)");
}
return false;
}
auto const nodelayer{resolve(Node->layer())};
if (false == valid(nodelayer))
{