X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIBallistic.cxx;h=16b15fe1d93f3aec36cb81a45ad6631c09a3398c;hb=38226af24ec01e8f0a20d7fd73ef838a69f6ef25;hp=a0faf6eca02894ca8d72a7445ecd938424662dc1;hpb=58cf5a12a06b49adb2528f871bd137c53e992ea0;p=flightgear.git diff --git a/src/AIModel/AIBallistic.cxx b/src/AIModel/AIBallistic.cxx index a0faf6eca..16b15fe1d 100644 --- a/src/AIModel/AIBallistic.cxx +++ b/src/AIModel/AIBallistic.cxx @@ -152,11 +152,11 @@ bool FGAIBallistic::init(bool search_in_AI_path) { props->setStringValue("contents/path", _contents_path.c_str()); } - if(_parent != ""){ - setParentNode(); - } + //if(_parent != ""){ + // setParentNode(); + //} - setParentNodes(_selected_ac); + //setParentNodes(_selected_ac); //props->setStringValue("vector/path", _vector_path.c_str()); @@ -168,7 +168,11 @@ bool FGAIBallistic::init(bool search_in_AI_path) { Transform(); - //cout << _name << " speed init: " << speed << endl; + if(_parent != ""){ + setParentNode(); + } + + setParentNodes(_selected_ac); return true; }