Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2008, 9:26:58 PM (17 years ago)
Author:
landauf
Message:

Fixed a small bug in the clean-function of ClassTreeMask (I made it recursively and forgot the recursion-call :D). From what I see now the ClassTreeMask works fine. And yes, I know it's overkill, no one will ever use more than 10% of the features, but I like it. ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/core/ClassTreeMask.cc

    r807 r808  
    278278    void ClassTreeMask::clean(ClassTreeMaskNode* node)
    279279    {
     280//std::cout << "4_1: " << node->getClass()->getName() << ": " << node->isIncluded() << "\n";
    280281        for (std::list<ClassTreeMaskNode*>::iterator it = node->subnodes_.begin(); it != node->subnodes_.end(); )
    281282        {
     283//std::cout << "4_2: " << (*it)->getClass()->getName() << ": " << (*it)->isIncluded() << "\n";
     284            this->clean(*it);
     285//std::cout << "4_3\n";
    282286            if ((*it)->isIncluded() == node->isIncluded())
    283287            {
     288//std::cout << "4_4\n";
    284289                node->subnodes_.insert(node->subnodes_.end(), (*it)->subnodes_.begin(), (*it)->subnodes_.end());
    285290                (*it)->subnodes_.clear();
    286291                node->subnodes_.erase(it);
    287292                it = node->subnodes_.begin();
     293//std::cout << "4_5\n";
    288294            }
    289295            else
    290296            {
     297//std::cout << "4_6\n";
    291298                ++it;
    292299            }
    293300        }
     301//std::cout << "4_7\n";
    294302    }
    295303
Note: See TracChangeset for help on using the changeset viewer.