Browse Source

Fixed bug in clearing of trail data.

QGC4.4
Lionel 13 years ago
parent
commit
efc09fbf65
  1. 3
      src/ui/map3D/Pixhawk3DWidget.cc

3
src/ui/map3D/Pixhawk3DWidget.cc

@ -472,7 +472,10 @@ Pixhawk3DWidget::clearData(void) @@ -472,7 +472,10 @@ Pixhawk3DWidget::clearData(void)
systemData.setpointGroupNode()->removeChildren(0, systemData.setpointGroupNode()->getNumChildren());
// clear trail data
systemData.orientationNode()->removeChildren(0, systemData.orientationNode()->getNumChildren());
systemData.trailIndexMap().clear();
systemData.trailMap().clear();
systemData.trailNode()->removeDrawables(0, systemData.trailNode()->getNumDrawables());
}
}

Loading…
Cancel
Save