Ignore:
Timestamp:
05/24/08 15:48:02 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp

    r2699 r2706  
    6161static string GetViewPointsListName(const string &filename) 
    6262{ 
    63         string viewCellPointsFile; 
    64  
    6563        char buff[200]; 
    6664        Environment::GetSingleton()->GetStringValue("ViewCells.randomViewPointsList", buff); 
    67  
    68         string vpList(buff); 
    69  
    70         if (vpList == "") 
     65        string viewCellPointsFile = buff; 
     66 
     67        if (viewCellPointsFile == "") 
    7168        { 
    7269                // if not specified, take file that has same prefix as scene file 
     
    7875                        viewCellPointsFile = ReplaceSuffix(filename, ".x3d", ".vc"); 
    7976        } 
    80         else 
    81         { 
    82                 viewCellPointsFile = vpList; 
    83         } 
    8477 
    8578        return viewCellPointsFile; 
     
    234227 
    235228         
    236          
    237229        // export objects as obj 
    238230        if (preprocessor->mExportObj) 
     
    245237                else 
    246238                { 
    247  
    248239                        const string objname = GetInternFilename(filename, ".obj"); 
    249240 
     
    281272                        cout << "successfully loaded " << viewCellPointsFile << endl; 
    282273                else 
    283                         cerr << "error: file << " << viewCellPointsFile << " not found" << endl; 
     274                        cerr << "error: file " << viewCellPointsFile << " not found" << endl; 
    284275        } 
    285276 
Note: See TracChangeset for help on using the changeset viewer.