Thrall, Bryan wrote on Monday, June 29, 2009 4:54 PM: > The OpenFlight plugin doesn't handle unrecognized options or extra > whitespace in all cases, causing it to crash. > > For example (since osgconv passes the same Options object to import and > export): > > osgconv -O "units=FEET convertToFeet" somefile.flt convfile.flt // > crashes > osgconv -O "units=FEET convertToFeet " somefile.flt convfile.flt // > works > osgconv -O "convertToFeet units=FEET " somefile.flt convfile.flt // > crashes > osgconv -O "convertToFeet units=FEET" somefile.flt convfile.flt // > works > > The attached src/osgPlugins/openflight/exportoptions.cpp (from SVN rev > 10428) fixes the problem.
Er ... I forgot to uncomment my fix in that file; the attached version has the same fix but actually in use :) -- Bryan Thrall FlightSafety International [email protected]
exportoptions.cpp
Description: exportoptions.cpp
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
