Skip to content
Snippets Groups Projects
Commit 88512a34 authored by vargheseg's avatar vargheseg
Browse files

Switch to Application::getInstance.

Do not rely on EntityOwner for accessig Application object.
parent c3e9996e
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,8 @@ namespace ChimeraTK {
}
void mainLoop() {
if (auto application = dynamic_cast<Application *>(getOwner())) {
if (application->isTestableModeEnabled()) {
return;
}
if (Application::getInstance().isTestableModeEnabled()) {
return;
}
tick = 0;
std::chrono::time_point<std::chrono::steady_clock> t = std::chrono::steady_clock::now();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment