加载背景时,仿真的运行图已加载才发布运行图重载事件

This commit is contained in:
joylink_zhangsai 2022-11-29 14:11:38 +08:00
parent 2e6c06c0cc
commit 078a49471e

View File

@ -635,7 +635,9 @@ public class GroupSimulationServiceImpl implements GroupSimulationService {
storageSimulation.recover2Simulation(simulation); storageSimulation.recover2Simulation(simulation);
atsMessageCollectAndDispatcher.collectAllAndSend(simulation); atsMessageCollectAndDispatcher.collectAllAndSend(simulation);
simulationLifeCycleService.resume(simulation); simulationLifeCycleService.resume(simulation);
this.applicationContext.publishEvent(new SimulationRunPlanReloadEvent(this, simulation)); if (simulation.isPlanLoaded()) {
this.applicationContext.publishEvent(new SimulationRunPlanReloadEvent(this, simulation));
}
this.applicationContext.publishEvent(new SimulationScenesReloadEvent(this, simulation)); this.applicationContext.publishEvent(new SimulationScenesReloadEvent(this, simulation));
atsMessageCollectAndDispatcher.syncTime(simulation); atsMessageCollectAndDispatcher.syncTime(simulation);
} }