Ignore:
Timestamp:
Feb 18, 2011, 5:59:39 PM (13 years ago)
Author:
Torben Dannhauer
Message:

typo fix, clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/trunk/src/object/object_updater.cpp

    r224 r247  
    2727        updater_rot_y_rad = object_->getName()+"_ROT_Y";
    2828        updater_rot_z_rad = object_->getName()+"_ROT_Z";
     29        updater_label = object_->getName()+"_LABEL";
     30        object_->addLabel("default", " ");
    2931}
    3032
     
    7981void object_updater::setUpdaterSlotNames( osgVisual::visual_object* object_, std::string lat_rad_, std::string lon_rad_, std::string alt_, std::string rot_x_rad_, std::string rot_y_rad_, std::string rot_z_rad_, std::string label_)
    8082{
    81         if(lat_rad_!="")
    82                 updater_lat_rad = lat_rad_;
    83         if(lon_rad_!="")
    84                 updater_lon_rad = lon_rad_;
    85         if(alt_!="")
    86                 updater_alt = alt_;
    87         if(rot_x_rad_!="")
    88                 updater_rot_x_rad = rot_x_rad_;
    89         if(rot_y_rad_!="")
    90                 updater_rot_y_rad = rot_y_rad_;
    91         if(rot_z_rad_!="")
    92                 updater_rot_z_rad = rot_z_rad_;
    93 
    94         if(label_!="")
    95                 updater_label = label_;
    96         else
    97         {
    98                 updater_label = object_->getName()+"_LABEL";
    99                 object_->addLabel("default", " ");
    100         }
     83        updater_lat_rad = lat_rad_;
     84        updater_lon_rad = lon_rad_;
     85        updater_alt = alt_;
     86        updater_rot_x_rad = rot_x_rad_;
     87        updater_rot_y_rad = rot_y_rad_;
     88        updater_rot_z_rad = rot_z_rad_;
     89        updater_label = label_;
    10190}
Note: See TracChangeset for help on using the changeset viewer.