Ignore:
Timestamp:
Feb 10, 2011, 12:51:47 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/core/visual_core.cpp

    r226 r227  
    282282                        {
    283283                                std::string name=reinterpret_cast<const char*>(modelNode->name);
    284                                 if(cur_node->type == XML_ELEMENT_NODE && name == "model")
     284                                if(modelNode->type == XML_ELEMENT_NODE && name == "model")
    285285                                {
    286286                                        visual_object::createNodeFromXMLConfig(rootNode, modelNode);
    287287                                }
    288                                 if(cur_node->type == XML_ELEMENT_NODE && name == "trackmodel")
     288                                if(modelNode->type == XML_ELEMENT_NODE && name == "trackmodel")
    289289                                {
    290290                                        // Extract track-ID and track the model
    291                                         xmlAttr  *attr = cur_node->properties;
     291                                        xmlAttr  *attr = modelNode->properties;
    292292                                        while ( attr )
    293293                                        {
    294294                                                std::string attr_name=reinterpret_cast<const char*>(attr->name);
    295295                                                std::string attr_value=reinterpret_cast<const char*>(attr->children->content);
    296                                                 if( attr_name == "id" ) trackNode( util::strToInt(attr_value) );
     296                                                if( attr_name == "id" )
     297                                                        trackNode( util::strToInt(attr_value) );
    297298                                                attr = attr->next;
    298299                                        }
     
    464465        //testObj5->addUpdater( new object_updater(testObj5) );
    465466
    466         trackNode( testObj4 );
     467        //trackNode( testObj4 );
    467468
    468469        // Load EDDF
Note: See TracChangeset for help on using the changeset viewer.