Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
iMSTK
iMSTK
Commits
84fd248f
Commit
84fd248f
authored
Jun 21, 2019
by
Sreekanth Arikatla
Browse files
REFAC: Move endSimualtion to destructor
parent
fa7b5b9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/SimulationManager/VTKRenderer/imstkVTKInteractorStyle.cpp
View file @
84fd248f
...
...
@@ -186,7 +186,7 @@ VTKInteractorStyle::OnChar()
(
key
==
'q'
||
key
==
'Q'
||
key
==
'e'
||
key
==
'E'
))
// end Simulation
{
m_fpsActor
->
VisibilityOff
();
m_simManager
->
endSimulation
();
//
m_simManager->endSimulation();
}
else
if
(
key
==
'd'
||
key
==
'D'
)
// switch rendering mode
{
...
...
Source/SimulationManager/imstkSimulationManager.h
View file @
84fd248f
...
...
@@ -59,7 +59,7 @@ public:
///
/// \brief Default destructor
///
~
SimulationManager
()
=
default
;
~
SimulationManager
()
{
this
->
endSimulation
();
}
;
///
/// \brief Returns the simulation status
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment