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

Preventing Hullcam from ... #29

Merged
merged 2 commits into from
Dec 5, 2021
Merged

Preventing Hullcam from ... #29

merged 2 commits into from
Dec 5, 2021

Conversation

Lisias
Copy link
Contributor

@Lisias Lisias commented Oct 6, 2021

…screwing up the MainCam when the user deactivated the camera with it still enabled.

I found this problem while toying with hullcam on KSP 1.4.5, and confirmed it on KSP 1.12.2.

If you deactivate any camera while using it (with it enabled), the Main Cam gets completely screwed and you need to quit to MainMenu and reload the game to get it fixed - switching Scenes does not help.

Lock the Camera PAW before enabling it, then enable it:
screenshot51

Then deactivate it (instead of disabling it):
screenshot52

This pull request fix it.

@Lisias
Copy link
Contributor Author

Lisias commented Oct 6, 2021

In time, perhaps something similar may be affeting #28 ? It worths a investigation.

@Lisias
Copy link
Contributor Author

Lisias commented Oct 6, 2021

Wait before accepting this pull request. I found some other borderline situation where the Main Can gets screwed. I will try to locate and fix it too.

@Lisias Lisias marked this pull request as draft October 6, 2021 04:39
@linuxgurugamer
Copy link
Owner

thanks, was on my todo list

…ated the camera with it still enabled - done right this time.
@Lisias
Copy link
Contributor Author

Lisias commented Oct 6, 2021

This. I think this really fix the problem.

Some calls to DeactivateCamera were missing, it was not only in one place - and on that place I used the wrong flag on the first commit.

This last commit fixed the problem on the two situations I was bitten.

@Lisias Lisias marked this pull request as ready for review October 6, 2021 18:46
@linuxgurugamer linuxgurugamer merged commit 03aa3b2 into linuxgurugamer:master Dec 5, 2021
@linuxgurugamer
Copy link
Owner

Thanks, will get this out today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants