Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Fixed issue with InstantPreview trying to destroy already destroyed cameras #870

Conversation

wouterhardeman
Copy link

Switching between scenes causes the InstantPreview cameras to be destroyed. While checking whether the cameras should be removed it will try to destroy the already destoyed GameObject again. This causes the function to halt and the old cameras to remain in the list. This results in an error message every frame as shown below.

screen shot 2018-03-13 at 14 12 27

I added a null-check for the eye cameras. This way already destroyed objects will be skipped, but will still be removed from the list.

@ddrocco
Copy link

ddrocco commented Aug 22, 2018

We've merged this into our system; thanks for the find and your contributions! :)

@rusmaxham
Copy link
Contributor

Now released.

@rusmaxham rusmaxham closed this Aug 31, 2018
@rusmaxham rusmaxham added the bug label Oct 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants