Show
Ignore:
Timestamp:
01/07/09 15:49:04 (5 years ago)
Author:
robert
Message:

Added handling of when a View isn't yet assigned to a Viewer to avoid associated crash

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/View.cpp

    r9459 r9462  
    279279         
    280280        // make sure that existing scene graph objects are allocated with thread safe ref/unref 
    281         if (getViewerBase()->getThreadingModel()!=ViewerBase::SingleThreaded)  
     281        if (getViewerBase() &&  
     282            getViewerBase()->getThreadingModel()!=ViewerBase::SingleThreaded)  
    282283        { 
    283284            getSceneData()->setThreadSafeRefUnref(true);