修改:运行图初始化bug

This commit is contained in:
joylink_zhangsai 2021-07-06 11:28:43 +08:00
parent 2ddb1c38c5
commit 92c572fad4

View File

@ -543,7 +543,9 @@ public class Simulation extends club.joylink.rtss.simulation.Simulation<Simulati
*/ */
public void reset() { public void reset() {
init(); init();
if (this.buildParams != null && this.buildParams.getRunPlan() != null) {
this.buildParams.getRunPlan().init(); this.buildParams.getRunPlan().init();
}
this.repository.reset(); this.repository.reset();
this.getSimulationMembers().forEach(member -> member.setCommand(null)); this.getSimulationMembers().forEach(member -> member.setCommand(null));
this.planRunning = false; this.planRunning = false;