accomodate changed getDisplayName interface in yasim::Hitch
This commit is contained in:
parent
5cf18d30c6
commit
ca3bd1c309
2 changed files with 5 additions and 3 deletions
|
@ -224,12 +224,12 @@ void Hitch::setForceIsCalculatedByOther(bool b)
|
||||||
_forceIsCalculatedByMaster=b;
|
_forceIsCalculatedByMaster=b;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *Hitch::getConnectedPropertyNode() const
|
std::string Hitch::getConnectedPropertyNode() const
|
||||||
{
|
{
|
||||||
if (_towEndNode)
|
if (_towEndNode)
|
||||||
return _towEndNode->getDisplayName();
|
return _towEndNode->getDisplayName();
|
||||||
else
|
else
|
||||||
return 0;
|
return std::string("");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Hitch::setConnectedPropertyNode(const char *nodename)
|
void Hitch::setConnectedPropertyNode(const char *nodename)
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef _HITCH_HPP
|
#ifndef _HITCH_HPP
|
||||||
#define _HITCH_HPP
|
#define _HITCH_HPP
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include <Main/fg_props.hxx>
|
#include <Main/fg_props.hxx>
|
||||||
|
|
||||||
namespace yasim {
|
namespace yasim {
|
||||||
|
@ -48,7 +50,7 @@ public:
|
||||||
|
|
||||||
void integrate (float dt);
|
void integrate (float dt);
|
||||||
|
|
||||||
const char *getConnectedPropertyNode() const;
|
std::string getConnectedPropertyNode() const;
|
||||||
void setConnectedPropertyNode(const char *nodename);
|
void setConnectedPropertyNode(const char *nodename);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Reference in a new issue