Added alias from xml to p3d to ensure backwards compatibility with old present3D files with the.xml extenstion

This commit is contained in:
Robert Osfield 2009-07-15 17:01:47 +00:00
parent 956bf3e395
commit a45ac2ef43

View File

@ -219,6 +219,9 @@ int main( int argc, char **argv )
arguments.getApplicationUsage()->addCommandLineOption("--loop","Switch on looping of presentation.");
arguments.getApplicationUsage()->addCommandLineOption("--devices","Print the Video input capability via QuickTime and exit.");
// add alias from xml to p3d to provide backwards compatibility for old p3d files.
osgDB::Registry::instance()->addFileExtensionAlias("xml","p3d");
// if user requests devices video capability.
if (arguments.read("-devices") || arguments.read("--devices"))
{