Changeset 203
- Timestamp:
- Jan 21, 2011, 10:18:18 PM (14 years ago)
- Location:
- osgVisual/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/core/visual_core.cpp
r202 r203 281 281 for (xmlNode *modelNode = cur_node->children; modelNode; modelNode = modelNode->next) 282 282 { 283 visual_object::createNodeFromXMLConfig(rootNode, modelNode); 283 std::string name=reinterpret_cast<const char*>(modelNode->name); 284 if(cur_node->type == XML_ELEMENT_NODE && name == "model") 285 { 286 visual_object::createNodeFromXMLConfig(rootNode, modelNode); 287 } 284 288 } 285 289 } -
osgVisual/trunk/src/object/visual_object.cpp
r202 r203 68 68 visual_object* visual_object::createNodeFromXMLConfig(osg::CoordinateSystemNode* sceneRoot_, xmlNode* a_node) 69 69 { 70 if(a_node == NULL) 71 return NULL; 72 73 OSG_NOTIFY( osg::ALWAYS ) << __FUNCTION__ << "Try to creating a new Model.." << std::endl; 70 74 //osg::ref<visual_object> object = new visual_object( root, nodeName); 71 75 … … 84 88 */ 85 89 86 90 OSG_NOTIFY( osg::ALWAYS ) << "Done." << std::endl; 87 91 return NULL; 88 92 }
Note: See TracChangeset
for help on using the changeset viewer.