Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue where no new scene is rendered after simContinueForTime #3305

Merged
merged 3 commits into from
Jun 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update SimModeWorldBase.cpp
fix build break from merge
  • Loading branch information
zimmy87 committed Jun 30, 2021
commit 0eba095cd2a0467b2edcb642e0c166ec2ca39ae8
9 changes: 4 additions & 5 deletions Unreal/Plugins/AirSim/Source/SimMode/SimModeWorldBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ void ASimModeWorldBase::continueForTime(double seconds)
while (!physics_world_->isPaused()) {
continue;
}
// wait if no new frame is renderd
while (start_frame_number == UKismetSystemLibrary::GetFrameCount()) {
continue;
}
UGameplayStatics::SetGamePaused(this->GetWorld(), true);
}

Expand All @@ -121,11 +125,6 @@ void ASimModeWorldBase::continueForFrames(uint32_t frames)
while (!physics_world_->isPaused()) {
physics_world_->setFrameNumber((uint32_t)GFrameNumber);
}
// wait if no new frame is renderd
while(start_frame_number == UKismetSystemLibrary::GetFrameCount())
{
continue;
}
UGameplayStatics::SetGamePaused(this->GetWorld(), true);
}

Expand Down