Changeset 372

Show
Ignore:
Timestamp:
10/31/06 16:19:03 (2 years ago)
Author:
dshipton
Message:

Get rid of dynamic casts…

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Dirk_RenderTraversalWork/Source/System/Action/RenderTraversal/OSGScreenLOD.inl

    r364 r372  
    106106            //Real32 pix = cbb * vp->getPixelWidth() * vp->getPixelHeight(); 
    107107 
    108 #if 0  
     108#if 1  
    109109            //THIS IS WHAT I WANT TO DO....but the calls to validate never return 
    110             Geometry* pmin = dynamic_cast<Geometry *>(getCPtr(action->getNode(0))); 
    111             Geometry* pmax = dynamic_cast<Geometry *>(getCPtr(action->getNode(numLevels-1))); 
    112             GeoStatsAttachmentPtr st_max = GeoStatsAttachment::get(pmin); 
     110            //commitChanges(); 
     111            NodePtr pmax = action->getNode(0); 
     112            GeoStatsAttachmentPtr st_max = GeoStatsAttachment::get(pmax); 
    113113            st_max->validate(); 
    114114 
    115             GeoStatsAttachmentPtr st_min = GeoStatsAttachment::get(pmax); 
     115            NodePtr pmin = action->getNode(numLevels-1); 
     116            GeoStatsAttachmentPtr st_min = GeoStatsAttachment::get(pmin); 
    116117            st_min->validate(); 
    117118