connectors need fixing
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user