From a45ac2ef43dbee9df0489410f10eec29530ff1f2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 15 Jul 2009 17:01:47 +0000 Subject: [PATCH] Added alias from xml to p3d to ensure backwards compatibility with old present3D files with the.xml extenstion --- applications/present3D/present3D.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/applications/present3D/present3D.cpp b/applications/present3D/present3D.cpp index 10c5358e5..ca41a856a 100644 --- a/applications/present3D/present3D.cpp +++ b/applications/present3D/present3D.cpp @@ -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")) {