Show
Ignore:
Timestamp:
04/06/07 00:00:32 (2 years ago)
Author:
vossg
Message:

fixed : improved multi aspect value field deletion

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mixin-collappse/Source/System/NodeCores/Drawables/Particles/OSGParticlesBase.cpp

    r658 r660  
    14521452#endif 
    14531453 
    1454 void ParticlesBase::resolveLinks(UInt32             uiCurrentAspect, 
    1455                                      AspectOffsetStore &oOffsets) 
    1456 
    1457     Inherited::resolveLinks(uiCurrentAspect, oOffsets); 
     1454void ParticlesBase::resolveLinks(void) 
     1455
     1456    Inherited::resolveLinks(); 
    14581457 
    14591458    static_cast<Particles *>(this)->setPositions(NullFC); 
     
    14651464    static_cast<Particles *>(this)->setNormals(NullFC); 
    14661465 
    1467     _mfSizes.terminateShare(uiCurrentAspect, oOffsets); 
    1468  
    1469     _mfIndices.terminateShare(uiCurrentAspect, oOffsets); 
    1470  
    1471     _mfTextureZs.terminateShare(uiCurrentAspect, oOffsets); 
     1466#ifdef OSG_MT_CPTR_ASPECT 
     1467    AspectOffsetStore oOffsets; 
     1468 
     1469    _pAspectStore->fillOffsetArray(oOffsets, this); 
     1470#endif 
     1471 
     1472 
     1473#ifdef OSG_MT_CPTR_ASPECT 
     1474    _mfSizes.terminateShare(Thread::getCurrentAspect(),  
     1475                                      oOffsets); 
     1476#endif 
     1477 
     1478#ifdef OSG_MT_CPTR_ASPECT 
     1479    _mfIndices.terminateShare(Thread::getCurrentAspect(),  
     1480                                      oOffsets); 
     1481#endif 
     1482 
     1483#ifdef OSG_MT_CPTR_ASPECT 
     1484    _mfTextureZs.terminateShare(Thread::getCurrentAspect(),  
     1485                                      oOffsets); 
     1486#endif 
    14721487} 
    14731488