mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-29 02:40:05 +00:00
BLOCKS SDK: Fixed the order of south and west DNA ports in the topology
This commit is contained in:
parent
58bd2b130f
commit
3fb4edb202
1 changed files with 11 additions and 5 deletions
|
|
@ -206,17 +206,23 @@ private:
|
|||
|
||||
void addPorts (int numNorth, int numEast, int numSouth, int numWest)
|
||||
{
|
||||
addPorts (Block::ConnectionPort::DeviceEdge::north, numNorth);
|
||||
addPorts (Block::ConnectionPort::DeviceEdge::east, numEast);
|
||||
addPorts (Block::ConnectionPort::DeviceEdge::south, numSouth);
|
||||
addPorts (Block::ConnectionPort::DeviceEdge::west, numWest);
|
||||
addPortsNE (Block::ConnectionPort::DeviceEdge::north, numNorth);
|
||||
addPortsNE (Block::ConnectionPort::DeviceEdge::east, numEast);
|
||||
addPortsSW (Block::ConnectionPort::DeviceEdge::south, numSouth);
|
||||
addPortsSW (Block::ConnectionPort::DeviceEdge::west, numWest);
|
||||
}
|
||||
|
||||
void addPorts (Block::ConnectionPort::DeviceEdge edge, int num)
|
||||
void addPortsNE (Block::ConnectionPort::DeviceEdge edge, int num)
|
||||
{
|
||||
for (int i = 0; i < num; ++i)
|
||||
ports.add ({ edge, i});
|
||||
}
|
||||
|
||||
void addPortsSW (Block::ConnectionPort::DeviceEdge edge, int num)
|
||||
{
|
||||
for (int i = 0; i < num; ++i)
|
||||
ports.add ({ edge, num - i - 1});
|
||||
}
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue