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
|
// drop reference
|
||||||
_fx = 0;
|
_fx = 0;
|
||||||
deinit();
|
shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -129,7 +129,7 @@ FGAircraftModel::init ()
|
||||||
void
|
void
|
||||||
FGAircraftModel::reinit()
|
FGAircraftModel::reinit()
|
||||||
{
|
{
|
||||||
deinit();
|
shutdown();
|
||||||
_fx->reinit();
|
_fx->reinit();
|
||||||
init();
|
init();
|
||||||
// TODO globally create signals for all subsystems (re)initialized
|
// TODO globally create signals for all subsystems (re)initialized
|
||||||
|
@ -137,7 +137,7 @@ FGAircraftModel::reinit()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
FGAircraftModel::deinit()
|
FGAircraftModel::shutdown()
|
||||||
{
|
{
|
||||||
if (!_aircraft.get()) {
|
if (!_aircraft.get()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -26,6 +26,7 @@ public:
|
||||||
virtual ~FGAircraftModel ();
|
virtual ~FGAircraftModel ();
|
||||||
|
|
||||||
virtual void init ();
|
virtual void init ();
|
||||||
|
virtual void shutdown ();
|
||||||
virtual void reinit ();
|
virtual void reinit ();
|
||||||
virtual void bind ();
|
virtual void bind ();
|
||||||
virtual void unbind ();
|
virtual void unbind ();
|
||||||
|
|
Loading…
Reference in a new issue