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/FieldContainer/Base/OSGChangeList.cpp

    r658 r660  
    8181} 
    8282 
    83 void ChangeList::addSubRefd(const UInt32 uiContainerId) 
     83void ChangeList::addSubRefd(const UInt32 uiContainerId, 
     84                                  bool   ignoreLevel  ) 
    8485{ 
    8586#ifdef OSG_ENABLE_VALGRIND_CHECKS 
     
    9394    ContainerChangeEntry *pEntry = getNewEntry(); 
    9495 
    95     if(_iSubRefLevel == 0
     96    if(_iSubRefLevel == 0 || ignoreLevel == true
    9697    { 
    9798        pEntry->uiEntryDesc   = ContainerChangeEntry::SubReference; 
     
    726727 
    727728    fprintf(stderr, "CL changed dump\n"); 
     729    BitVector tmpVec = 0; 
    728730 
    729731    while(cIt != cEnd) 
     
    733735            fprintf(stderr, " "); 
    734736        } 
     737 
     738        FieldContainerPtr pTmp = 
     739            FieldContainerFactory::the()->getContainer((*cIt)->uiContainerId); 
    735740 
    736741        fprintf(stderr, "CE : %u %u 0x%016llx 0x%016llx\n", 
    737742                (*cIt)->uiEntryDesc, 
    738743                (*cIt)->uiContainerId, 
    739                 (*cIt)->uncommitedChanges, 
     744                (pTmp == NULL) ? tmpVec : (*cIt)->uncommitedChanges, 
    740745                (*cIt)->whichField); 
    741746 
     
    755760            fprintf(stderr, " "); 
    756761        } 
     762 
     763        FieldContainerPtr pTmp = 
     764            FieldContainerFactory::the()->getContainer((*cIt)->uiContainerId); 
    757765 
    758766        fprintf(stderr, "CE : %u %u 0x%016llx 0x%016llx\n", 
    759767                (*cIt)->uiEntryDesc, 
    760768                (*cIt)->uiContainerId, 
    761                 (*cIt)->uncommitedChanges, 
     769                (pTmp == NULL) ? tmpVec : (*cIt)->uncommitedChanges, 
    762770                (*cIt)->whichField); 
    763771