[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>
This commit is contained in:
parent
0cc7e61434
commit
5e5b2e4071
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue