[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
parent
0cc7e61434
commit
5e5b2e4071
|
@ -345,7 +345,7 @@ extern NSString *CogPlaybackDidStopNotficiation;
|
||||||
SCNNode *dotNode = nodes[i + 1 + 11];
|
SCNNode *dotNode = nodes[i + 1 + 11];
|
||||||
SCNVector3 position = node.position;
|
SCNVector3 position = node.position;
|
||||||
position.y = maxValue * 0.5;
|
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;
|
node.position = position;
|
||||||
|
|
||||||
position = dotNode.position;
|
position = dotNode.position;
|
||||||
|
|
Loading…
Reference in New Issue