flatland_viz/src/spawn_model_tool.cpp
void SpawnModelTool::deactivate() {
  if (moving_model_node_) {
    moving_model_node_->setVisible(false);
  }
}
// deactivate() is called when the tool is being turned off because
// another tool has been chosen.
//
// We make the moving model invisible, then delete the current model
// property.  Deleting a property also removes it from its parent
// property, so that doesn't need to be done in a separate step.  If
// we didn't delete it here, it would stay in the list of models when
// we switch to another tool.
deactivate() is called when the tool is being turned off because
another tool has been chosen.

We make the moving model invisible, then delete the current model
property.  Deleting a property also removes it from its parent
property, so that doesn't need to be done in a separate step.  If
we didn't delete it here, it would stay in the list of models when
we switch to another tool.
deactivate () is called when the tool is being turned off because another tool has been chosen . We make the moving model invisible then delete the current model property . Deleting a property also removes it from its parent property so that doesn ' t need to be done in a separate step . If we didn ' t delete it here it would stay in the list of models when we switch to another tool .
void SpawnModelTool::deactivate() {
  if (moving_model_node_) {
    moving_model_node_->setVisible(false);
  }
}
void SpawnModelTool :: deactivate ( ) { if ( moving_model_node_ ) { moving_model_node_ -> setVisible ( false ) ; } }
deactivate() is called when the tool is being turned off because
another tool has been chosen.
deactivate () is called when the tool is being turned off because another tool has been chosen .