On the road to connector -> connector with edges...

This commit is contained in:
Sebastian
2024-11-28 08:49:35 +01:00
parent 492971ed4f
commit 635c94e3cf
4 changed files with 23 additions and 13 deletions
+3
View File
@@ -14,6 +14,7 @@ namespace VISEQ::BASE {
inline static std::vector<std::shared_ptr<Connectable>> connectables;
std::shared_ptr<Connectable> partner;
bool new_partner = false;
virtual void init() {
connectables.emplace_back(this);
@@ -34,6 +35,8 @@ namespace VISEQ::BASE {
if(c.get() != this && c->hovering()) {
partner = c;
c->partner.reset(this);
new_partner = true;
partner->new_partner = true;
break;
}
}