Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation; either version 2.1 of the License, or (at
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation; either version 2.1 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
||||
* License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
@@ -56,17 +56,17 @@ REGISTER_OSGPLUGIN(ply, ReaderWriterPLY)
|
||||
//!
|
||||
//! \brief Function which is called when any ply file is requested to load in
|
||||
//! \osgDB. Load read ply file and if it successes return the osg::Node
|
||||
//!
|
||||
//!
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
osgDB::ReaderWriter::ReadResult ReaderWriterPLY::readNode(const std::string& filename, const osgDB::ReaderWriter::Options* options) const
|
||||
{
|
||||
// Get the file extension
|
||||
std::string ext = osgDB::getFileExtension(filename);
|
||||
|
||||
|
||||
// If the file extension does not support then return that file is not handled
|
||||
if (!acceptsExtension(ext)) return ReadResult::FILE_NOT_HANDLED;
|
||||
|
||||
// Check whether or not file exist or not
|
||||
// Check whether or not file exist or not
|
||||
std::string fileName = osgDB::findDataFile(filename, options);
|
||||
if (fileName.empty()) return ReadResult::FILE_NOT_FOUND;
|
||||
|
||||
@@ -74,7 +74,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriterPLY::readNode(const std::string& fil
|
||||
ply::VertexData vertexData;
|
||||
osg::Node* node = vertexData.readPlyFile(filename.c_str());
|
||||
|
||||
if (node)
|
||||
if (node)
|
||||
return node;
|
||||
|
||||
return ReadResult::FILE_NOT_HANDLED;
|
||||
|
||||
Reference in New Issue
Block a user