connectors need fixing

This commit is contained in:
Sebastian
2026-06-28 23:45:54 +02:00
parent 03b2989130
commit e9c8cc9aea
5 changed files with 23 additions and 24 deletions
+10
View File
@@ -66,6 +66,16 @@ namespace VISEQ::GRAPH::NODES {
in_selection_rect = CheckCollisionPointRec(position, state->selection);
}
std::weak_ptr<Connector> Node::getConnector(){
for(auto c : connectors){
if(c->partner.expired()) {
return c;
}
}
addConnector();
return connectors.back();
}
void Node::draw(Vec2Df mp, Camera2D cam) {}
void Node::draw() {