List<PathCommand> renderCommands;
if (smooth && lineCommands.size() > 0) {
PathSprite smooth = new PathSprite();
smooth.setCommands(lineCommands);
renderCommands = smooth.copy().toSmooth(segments).getCommands();
} else {
renderCommands = PathSprite.copyCommands(lineCommands);
}
// Correct path if we're animating timeAxis intervals