I'm writing a plib loader for XPlane custom objects and have been testing it within 
FlightGear and have noticed a couple of problems.

Firstly, if the object is not found then fgLoad3DModel() throws an uncaught exception. 
 Adding a try/catch block to FGTileMgr::update() prevents FlightGear from exiting, see 
the attached diff.

Secondly, the texture path is set twice.  Once in FGTileMgr::update() and again in 
fgLoad3DModel().  The path set in fgLoad3DModel() is incorrect - it contains two 
instances of $FG_ROOT.  For the moment I've commented out this call to 
ssgTexturePath() but I'm not entirely sure if this correct in all cases.

Bernie

Attachment: tilemgr.cxx.diff
Description: Binary data

Attachment: model.cxx.diff
Description: Binary data

Reply via email to