Changeset 198 for osgVisual/trunk/src/sky_Silverlining
- Timestamp:
- Jan 13, 2011, 9:18:11 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/trunk/src/sky_Silverlining/visual_skySilverLining.cpp
r197 r198 753 753 float density = -1.0, rate_mmPerHour_rain = -1.0, rate_mmPerHour_drySnow = -1.0, rate_mmPerHour_wetSnow = -1.0, rate_mmPerHour_sleet = -1.0; 754 754 CloudTypes ctype = CUMULUS_CONGESTUS; 755 756 757 755 758 756 xmlAttr *attr = cloudlayerNode_->properties; … … 798 796 } 799 797 800 cloudlayerNode_ = cloudlayerNode_->children; 801 if(!cloudlayerNode_) 798 if(!cloudlayerNode_->children) 802 799 { 803 800 OSG_NOTIFY( osg::ALWAYS ) << "ERROR - visual_skySilverLining::configureCloudlayerbyXML: Missing geometry specification for a cloudlayer." << std::endl; … … 805 802 } 806 803 807 for (xmlNode *cur_node = cloudlayerNode_; cur_node; cur_node = cur_node->next) 808 { 804 for (xmlNode *cur_node = cloudlayerNode_->children; cur_node; cur_node = cur_node->next) 805 { 806 node_name=reinterpret_cast<const char*>(cur_node->name); 809 807 if(cur_node->type == XML_ELEMENT_NODE && node_name == "geometry") 810 808 { 811 xmlAttr *attr = c loudlayerNode_->properties;809 xmlAttr *attr = cur_node->properties; 812 810 while ( attr ) 813 811 { … … 845 843 if(cur_node->type == XML_ELEMENT_NODE && node_name == "precipitation") 846 844 { 847 xmlAttr *attr = c loudlayerNode_->properties;845 xmlAttr *attr = cur_node->properties; 848 846 while ( attr ) 849 847 {
Note: See TracChangeset
for help on using the changeset viewer.