From 123eb41819554cc0bc99a510d4822428007b44f2 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Wed, 22 Jan 2020 14:53:27 +0100 Subject: [PATCH] Copy the initial properties a second time after initilization. --- src/FDM/fdm_shell.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/FDM/fdm_shell.cxx b/src/FDM/fdm_shell.cxx index 40693b5b0..f6ec66079 100644 --- a/src/FDM/fdm_shell.cxx +++ b/src/FDM/fdm_shell.cxx @@ -190,6 +190,12 @@ void FDMShell::update(double dt) fgSetBool("/sim/fdm-initialized", true); fgSetBool("/sim/signals/fdm-initialized", true); + + if (!copyProperties(_props->getNode("fdm", true), + _initialFdmProperties)) + { + SG_LOG(SG_FLIGHT, SG_ALERT, "Failed to save initial FDM property state"); + } } }