Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2005, 9:12:50 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: cycle-loading of LoadParam works…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5652 r5654  
    165165  if (root != NULL)
    166166  {
    167     const TiXmlElement* element = root->FirstChildElement();
    168     while (element != NULL)
    169     {
    170       LoadParam<Element2D>(root, "parent", this, &Element2D::addChild2D, true)
     167    LOAD_PARAM_START_CYCLE(root, element);
     168    {
     169      LoadParam_CYCLE(element, "parent", this, Element2D, addChild2D)
    171170          .describe("adds a new Child to the current Node.");
    172 
    173       element = element->NextSiblingElement();
    174     }
     171    }
     172    LOAD_PARAM_END_CYCLE(element);
    175173  }
    176174}
Note: See TracChangeset for help on using the changeset viewer.