From 6fb53874734c814c3ac4e9cc93bfd22b1ffad468 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 19 Jan 2011 10:38:39 +0000 Subject: [PATCH] From Sukender, normalized option names --- src/osgPlugins/dae/ReaderWriterDAE.cpp | 8 ++++---- src/osgPlugins/dae/ReaderWriterDAE.h | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/osgPlugins/dae/ReaderWriterDAE.cpp b/src/osgPlugins/dae/ReaderWriterDAE.cpp index 950359af4..51611f92e 100644 --- a/src/osgPlugins/dae/ReaderWriterDAE.cpp +++ b/src/osgPlugins/dae/ReaderWriterDAE.cpp @@ -1,4 +1,4 @@ -/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield +/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This application is open source and may be redistributed and/or modified * freely and without restriction, both in commercial and non commercial @@ -129,9 +129,9 @@ ReaderWriterDAE::writeNode( const osg::Node& node, if( opt == "polygon") usePolygon = true; else if (opt == "GoogleMode") googleMode = true; else if (opt == "NoExtras") writeExtras = false; - else if (opt == "DaeEarthTex") earthTex = true; - else if (opt == "ZUpAxis") zUpAxis = true; - else if (opt == "ForceTexture") forceTexture = true; + else if (opt == "daeEarthTex") earthTex = true; + else if (opt == "daeZUpAxis") zUpAxis = true; + else if (opt == "daeForceTexture") forceTexture = true; else if (!opt.empty()) { OSG_NOTICE << std::endl << "COLLADA dae plugin: unrecognized option \"" << opt << std::endl; diff --git a/src/osgPlugins/dae/ReaderWriterDAE.h b/src/osgPlugins/dae/ReaderWriterDAE.h index 61d2ca198..f7a417888 100644 --- a/src/osgPlugins/dae/ReaderWriterDAE.h +++ b/src/osgPlugins/dae/ReaderWriterDAE.h @@ -18,12 +18,12 @@ public: // Collada zip archive (contains one or more dae files and a manifest.xml) supportsExtension("zae","COLLADA 1.4.x ZAE format"); - supportsOption("polygon", "(Write option) Use polygons instead of polylists for element"); - supportsOption("GoogleMode", "(Write option) Write files suitable for use by Google products"); - supportsOption("NoExtras", "(Write option) Undocumented"); - supportsOption("DaeEarthTex", "(Write option) DAE settings for writing earth textures"); - supportsOption("ZUpAxis", "(Write option) Indicates the up axis is Z instead of Y"); - supportsOption("ForceTexture","(Write option) Force writing references to an image for a texture, even if the file is not found"); + supportsOption("polygon", "(Write option) Use polygons instead of polylists for element"); + supportsOption("GoogleMode", "(Write option) Write files suitable for use by Google products"); + supportsOption("NoExtras", "(Write option) Undocumented"); + supportsOption("daeEarthTex", "(Write option) DAE settings for writing earth textures"); + supportsOption("daeZUpAxis", "(Write option) Indicates the up axis is Z instead of Y"); + supportsOption("daeForceTexture", "(Write option) Force writing references to an image for a texture, even if the file is not found"); supportsOption("StrictTransparency", "(Read option) Undocumented"); }