File tree Expand file tree Collapse file tree
Unreal/Plugins/AirSim/Source Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ void ASimHUD::inputEventToggleHelp()
8888
8989void ASimHUD::inputEventToggleTrace ()
9090{
91- simmode_->getVehicleSimApi ()-> toggleTrace ();
91+ simmode_->toggleTraceAll ();
9292}
9393
9494ASimHUD::ImageType ASimHUD::getSubwindowCameraType (int window_index)
@@ -135,7 +135,7 @@ void ASimHUD::updateWidgetSubwindowVisibility()
135135
136136 if (camera != nullptr ) {
137137 camera->setCameraTypeEnabled (camera_type, is_visible);
138- // sub-window captures don’ t count as a request, set bCaptureEveryFrame and bCaptureOnMovement to display so we can show correctly the subwindow
138+ // sub-window captures don' t count as a request, set bCaptureEveryFrame and bCaptureOnMovement to display so we can show correctly the subwindow
139139 camera->setCameraTypeUpdate (camera_type, false );
140140 }
141141
Original file line number Diff line number Diff line change @@ -513,6 +513,14 @@ bool ASimModeBase::isRecording() const
513513 return FRecordingThread::isRecording ();
514514}
515515
516+ void ASimModeBase::toggleTraceAll ()
517+ {
518+ for (auto sim_api : getApiProvider ()->getVehicleSimApis ()) {
519+ auto * pawn_sim_api = static_cast <PawnSimApi*>(sim_api);
520+ pawn_sim_api->toggleTrace ();
521+ }
522+ }
523+
516524const APIPCamera* ASimModeBase::getCamera (const msr::airlib::CameraDetails& camera_details) const
517525{
518526 return camera_details.external ? getExternalCamera (camera_details.camera_name )
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ class AIRSIM_API ASimModeBase : public AActor
7171 virtual void stopRecording ();
7272 virtual bool isRecording () const ;
7373
74+ virtual void toggleTraceAll ();
75+
7476 void startApiServer ();
7577 void stopApiServer ();
7678 bool isApiServerStarted ();
You can’t perform that action at this time.
0 commit comments