Changeset 898

Show
Ignore:
Timestamp:
03/19/08 13:44:24
Author:
robert
Message:

Added error handling code for when no destination graph is built

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vpb/DataSet.cpp

    r891 r898  
    706706    osg::Timer_t before_computeMax = osg::Timer::instance()->tick(); 
    707707 
    708     _destinationGraph->computeMaximumSourceResolution(); 
     708    if (_destinationGraph.valid()) _destinationGraph->computeMaximumSourceResolution(); 
    709709 
    710710    osg::Timer_t after_computeMax = osg::Timer::instance()->tick(); 
     
    11421142 
    11431143    // now traverse the destination graph to build neighbours.         
    1144     _destinationGraph->computeNeighboursFromQuadMap(); 
     1144    if (_destinationGraph.valid()) _destinationGraph->computeNeighboursFromQuadMap(); 
    11451145 
    11461146    osg::Timer_t after_computeNeighbours = osg::Timer::instance()->tick(); 
     
    27962796    createDestination(numLevels); 
    27972797     
     2798    if (!_destinationGraph) 
     2799    { 
     2800        log(osg::WARN, "Error: no destination graph built, cannot proceed with build."); 
     2801        return 1; 
     2802    } 
     2803 
     2804 
    27982805    bool requiresGenerationOfTiles = getGenerateTiles(); 
    27992806