ConnectionsDock: Fix error when parsing CustomCallable connections

This commit is contained in:
Rémi Verschelde 2020-02-28 14:32:36 +01:00
parent 09a6a2d8f8
commit 32ccf306f9
2 changed files with 6 additions and 3 deletions

View file

@ -1015,9 +1015,10 @@ void ConnectionsDock::update_tree() {
for (List<Object::Connection>::Element *F = connections.front(); F; F = F->next()) {
ConnectDialog::ConnectionData c = F->get();
if (!(c.flags & CONNECT_PERSIST))
Connection cn = F->get();
if (!(cn.flags & CONNECT_PERSIST))
continue;
ConnectDialog::ConnectionData c = cn;
Node *target = Object::cast_to<Node>(c.target);
if (!target)