|
|
@@ -645,7 +645,7 @@ public: |
|
|
|
auto numBlockComponents = blockComponents.size();
|
|
|
|
|
|
|
|
// If there are no currently connected Blocks then display some text on the screen
|
|
|
|
if (numBlockComponents == 0)
|
|
|
|
if (masterBlockComponent == nullptr || numBlockComponents == 0)
|
|
|
|
{
|
|
|
|
noBlocksLabel.setVisible (true);
|
|
|
|
noBlocksLabel.setBounds (0, (getHeight() / 2) - 50, getWidth(), 100);
|
|
|
@@ -795,6 +795,9 @@ private: |
|
|
|
/** Calculates the position and rotation of each connected Block relative to the master Block */
|
|
|
|
void positionBlocks (BlockTopology topology)
|
|
|
|
{
|
|
|
|
if (masterBlockComponent == nullptr)
|
|
|
|
return;
|
|
|
|
|
|
|
|
Array<BlockComponent*> blocksConnectedToMaster;
|
|
|
|
|
|
|
|
auto maxDelta = std::numeric_limits<float>::max();
|
|
|
|