From 5ebd1a18f3dd2b6a978e5cb1eb3b871e4bbddd79 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 9 Mar 2006 11:14:16 +0000 Subject: [PATCH] add / support to AI models, including aircraft models. For aircraft models this is only called if they are loaded as AI, not if they are the model flown by the human pilot. This has technical reasons (too soon for Nasal/fg), but is useful to distinguish AI and non-AI use, for example to set a different livery for AI models, or to set different animation properties. --- src/AIModel/AIBase.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index b1dca66e7..d7eda2d56 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -39,6 +39,7 @@ #include
#include +#include #include "AIBase.hxx" @@ -162,7 +163,8 @@ ssgBranch * FGAIBase::load3DModel(const string& fg_root, model = sgLoad3DModel(fg_root, path, prop_root, - sim_time_sec); + sim_time_sec, 0, + new FGNasalModelData); manager->setModel(path, model); } -- 2.39.5