Assembly: Add preference to enable debug files of dragging

This commit is contained in:
PaddleStroke
2024-06-04 17:42:18 +02:00
committed by Chris Hennes
parent 42eb4fdda6
commit 7345d76f2c
3 changed files with 29 additions and 3 deletions

View File

@@ -399,6 +399,10 @@ std::shared_ptr<ASMTAssembly> AssemblyObject::makeMbdAssembly()
auto assembly = CREATE<ASMTAssembly>::With();
assembly->setName("OndselAssembly");
ParameterGrp::handle hPgr = App::GetApplication().GetParameterGroupByPath(
"User parameter:BaseApp/Preferences/Mod/Assembly");
assembly->setDebug(hPgr->GetBool("LogSolverDebug", false));
return assembly;
}