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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user