diff --git a/OptionPanel/MachiningOptionPanel/SimulationExpander/SimulationExpanderVM.vb b/OptionPanel/MachiningOptionPanel/SimulationExpander/SimulationExpanderVM.vb index c7a5a6b..8c2eab8 100644 --- a/OptionPanel/MachiningOptionPanel/SimulationExpander/SimulationExpanderVM.vb +++ b/OptionPanel/MachiningOptionPanel/SimulationExpander/SimulationExpanderVM.vb @@ -468,16 +468,16 @@ Public Class SimulationExpanderVM Friend Sub SimulationExpander_Update_CncData( nFlag As Integer) If Simulation_IsExpanded Then ShowCncData() - ' Se fermo per Collisione rilevata da script Lua - If nFlag = 11 Then + ' Se fermo per Collisione rilevata da script Lua o per altra richiesta + If nFlag = 11 Or nFlag = 12 Then ' Imposto stato Pausa SetSimulationStatus(MCH_SIM_ST.UI_PAUSE) StatusMsg = EgtMsg(MSG_SIMULATION + 11) ' PAUSA ' Aggiornamenti per bottone Play/Pause SetShowPlay(True) NotifyPropertyChanged("PlayPauseImage") - ' Dichiaro di non arrestarsi alla successiva notifica di collisione - m_bStopOnNextCollision = False + ' Se fermo per Collisione, dichiaro di non arrestarsi alla successiva notifica di collisione + If nFlag = 11 Then m_bStopOnNextCollision = False End If End If End Sub