From fc71ec58364be6688acf906c8cb7207db897fda1 Mon Sep 17 00:00:00 2001 From: "VKMTHD\\haraldmartini" <harald.martini@student.tugraz.at> Date: Tue, 24 Jan 2023 09:28:46 +0100 Subject: [PATCH] update last shift property in gearbox update from --- VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs index f763965760..7bc8ff27cb 100644 --- a/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs +++ b/VectoCore/VectoCore/Models/SimulationComponent/Impl/Gearbox.cs @@ -525,6 +525,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl protected override bool DoUpdateFrom(object other) { if (other is Gearbox g) { PreviousState = g.PreviousState.Clone(); + LastShift = g.LastShift; return true; } return false; -- GitLab