Skip to content

Commit dcf755c

Browse files
committed
Fix event to export actions
1 parent 6adc4ad commit dcf755c

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/BeamAdapter/component/controller/BeamAdapterActionController.inl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ void BeamAdapterActionController<DataTypes>::onKeyPressedEvent(core::objectmodel
7777

7878
case 'E':
7979
m_currAction = BeamAdapterAction::NO_ACTION;
80-
m_exportActions = !m_exportActions;
80+
std::cout << "timeSteps='" << d_timeSteps.getValue() << "'" << std::endl;
81+
std::cout << "actions='" << d_actions.getValue() << "'" << std::endl;
8182
break;
8283
case 'D':
8384
m_currAction = BeamAdapterAction::DROP_TOOL;
@@ -138,12 +139,6 @@ void BeamAdapterActionController<DataTypes>::onBeginAnimationStep(const double /
138139
times.push_back(currentTime);
139140
actions.push_back(int(m_currAction));
140141

141-
if (m_exportActions)
142-
{
143-
std::cout << "timeSteps='" << times.wref() << "'" << std::endl;
144-
std::cout << "actions='" << actions.wref() << "'" << std::endl;
145-
}
146-
147142
m_lastAction = m_currAction;
148143
}
149144
else

0 commit comments

Comments
 (0)