1
0
Fork 0

Revert "Fixes for HUD, model-manager listeners."

This reverts commit 831053bd04.

See if this fixes the problem deleting models which Denk reported.
This commit is contained in:
James Turner 2017-02-02 17:02:39 +01:00
parent 05b2b6536b
commit d05b934702
2 changed files with 0 additions and 6 deletions

View file

@ -82,7 +82,6 @@ HUD::Input::Input(const SGPropertyNode *n, float factor, float offset,
} }
HUD::HUD() : HUD::HUD() :
SGPropertyChangeListener(true /* recursive */),
_currentPath(fgGetNode("/sim/hud/current-path", true)), _currentPath(fgGetNode("/sim/hud/current-path", true)),
_currentColor(fgGetNode("/sim/hud/current-color", true)), _currentColor(fgGetNode("/sim/hud/current-color", true)),
_visibility(fgGetNode("/sim/hud/visibility[1]", true)), _visibility(fgGetNode("/sim/hud/visibility[1]", true)),

View file

@ -277,11 +277,6 @@ FGModelMgr::Instance::~Instance ()
void void
FGModelMgr::Listener::childAdded(SGPropertyNode * parent, SGPropertyNode * child) FGModelMgr::Listener::childAdded(SGPropertyNode * parent, SGPropertyNode * child)
{ {
if (!strcmp(parent->getName(), "models") && !strcmp(child->getName(), "model")) {
child->addChangeListener(this);
return;
}
if (strcmp(parent->getName(), "model") || strcmp(child->getName(), "load")) if (strcmp(parent->getName(), "model") || strcmp(child->getName(), "load"))
return; return;