[Visualization] Add micro bias to cylinder scale

Apparently, old macOS wants to divide something by the scale size, so
setting it to zero causes division by zero errors? Let's set it to a
really small number instead.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-05-27 04:33:07 -07:00
parent 0cc7e61434
commit 5e5b2e4071
1 changed files with 1 additions and 1 deletions

View File

@ -345,7 +345,7 @@ extern NSString *CogPlaybackDidStopNotficiation;
SCNNode *dotNode = nodes[i + 1 + 11];
SCNVector3 position = node.position;
position.y = maxValue * 0.5;
node.scale = SCNVector3Make(1.0, maxValue, 1.0);
node.scale = SCNVector3Make(1.0, maxValue + 1e-7, 1.0);
node.position = position;
position = dotNode.position;