| 30 | } |
| 31 | |
| 32 | static void requestConnectPoint( |
| 33 | wraps::BaseGraphView* _sender, |
| 34 | wraps::BaseGraphConnection* _from, |
| 35 | wraps::BaseGraphConnection* _to, |
| 36 | bool& _result) |
| 37 | { |
| 38 | if (_to == nullptr) |
| 39 | { |
| 40 | if (isConnectionOut(_from->getType())) |
| 41 | { |
| 42 | _result = true; |
| 43 | } |
| 44 | } |
| 45 | else |
| 46 | { |
| 47 | if (_from != _to && isConnectionTypeSimple(_from->getType()) == isConnectionTypeSimple(_to->getType()) && |
| 48 | isConnectionOut(_from->getType()) && !isConnectionOut(_to->getType()) && |
| 49 | !_sender->isConnecting(_from, _to)) |
| 50 | { |
| 51 | _result = true; |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | static void requestDisconnectPoint( |
| 57 | wraps::BaseGraphView* _sender, |
no test coverage detected