Reset: use a smart point for model-placement.
This commit is contained in:
parent
75a01aa588
commit
a488086d30
2 changed files with 4 additions and 3 deletions
|
@ -58,7 +58,7 @@ FGAircraftModel::~FGAircraftModel ()
|
|||
{
|
||||
// drop reference
|
||||
_fx = 0;
|
||||
deinit();
|
||||
shutdown();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -129,7 +129,7 @@ FGAircraftModel::init ()
|
|||
void
|
||||
FGAircraftModel::reinit()
|
||||
{
|
||||
deinit();
|
||||
shutdown();
|
||||
_fx->reinit();
|
||||
init();
|
||||
// TODO globally create signals for all subsystems (re)initialized
|
||||
|
@ -137,7 +137,7 @@ FGAircraftModel::reinit()
|
|||
}
|
||||
|
||||
void
|
||||
FGAircraftModel::deinit()
|
||||
FGAircraftModel::shutdown()
|
||||
{
|
||||
if (!_aircraft.get()) {
|
||||
return;
|
||||
|
|
|
@ -26,6 +26,7 @@ public:
|
|||
virtual ~FGAircraftModel ();
|
||||
|
||||
virtual void init ();
|
||||
virtual void shutdown ();
|
||||
virtual void reinit ();
|
||||
virtual void bind ();
|
||||
virtual void unbind ();
|
||||
|
|
Loading…
Reference in a new issue