Commit efc09fbf authored by Lionel's avatar Lionel

Fixed bug in clearing of trail data.

parent 0557cad2
......@@ -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());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment