blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

Recent changes made Scene switching not possible #43

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: DoctorWhoof

This DebugAssert line was recently added to "scene.monkey2" in the dev branch:

Function SetCurrent( scene:Scene )
    DebugAssert( Not _current,"Scene.Current already set" )    '<---- This was added recently
    _current=scene
End

I used to be able to switch between scenes using SetCurrent, now I can't anymore, since it errors out if _current is already assigned. Is there a better way to change scenes, or was this result not intentional?

Thanks!

Pharmhaus-2 commented 5 years ago

@DoctorWhoof Do you have a reproducible example?

DoctorWhoof commented 5 years ago

This was a while ago, I believe it got fixed, but I can't confirm right now.