Uncrustify Issues with Lambda's
Uncrustify always formats lambda's like this:
connect<Event>(scene, &Scene::configureTaskGraph,
[&](Event*)
{
// Add a manual constraint after the pbd solve
scene->getTaskGraph()->insertAfter(pbdObject->getPbdModel()->getSolveNode(),
std::make_shared<TaskNode>([&]()
{
// Constrain the position of the 3 vertices of the triangle
// too their original locations
// Completely rigid, if there is jitter it will be very noticable
// We prented it fully converged as a distance constraint
(*pbdVerticesPtr)[0] = initPos[0];
(*pbdVerticesPtr)[1] = initPos[1];
(*pbdVerticesPtr)[2] = initPos[2];
}));
});
At the least I would hope it could align the braces of the lambda.