| 674 | } |
| 675 | |
| 676 | bool River::addNodeFromField( void *object, const char *index, const char *data ) |
| 677 | { |
| 678 | River *pObj = static_cast<River*>(object); |
| 679 | |
| 680 | //if ( !pObj->isProperlyAdded() ) |
| 681 | //{ |
| 682 | F32 x,y,z,width,depth; |
| 683 | VectorF normal; |
| 684 | U32 result = dSscanf( data, "%f %f %f %f %f %f %f %f", &x, &y, &z, &width, &depth, &normal.x, &normal.y, &normal.z ); |
| 685 | if ( result == 8 ) |
| 686 | pObj->_addNode( Point3F(x,y,z), width, depth, normal ); |
| 687 | //} |
| 688 | |
| 689 | return false; |
| 690 | } |
| 691 | |
| 692 | bool River::onAdd() |
| 693 | { |