Skip to content

Commit

Permalink
Revert "Fix scenepart swapping handling"
Browse files Browse the repository at this point in the history
This reverts commit 6054b70.
  • Loading branch information
dokempf committed Nov 11, 2024
1 parent 5ccca50 commit 567ff58
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sim/comps/SimulationPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,7 @@ void SimulationPlayer::restartScene(Scene &scene, bool const keepCRS){
if(sp->sorh != nullptr && sp->sorh->isOnSwapFirstPlay()) {
ScenePart::computeTransformations(sp, sp->sorh->isHolistic());
sp->sorh->setOnSwapFirstPlay(false);
if(sp->mPrimitives.empty()) {
sp->sorh->setNull(true);
}
else {
if(!sp->mPrimitives.empty()) {
sp->sorh->setNull(false);
sp->sorh->setDiscardOnReplay(false);
}
Expand Down

0 comments on commit 567ff58

Please sign in to comment.