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

Viewport environment is updated properly when set to own world #33987

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

pouleyKetchoupp
Copy link
Contributor

When own_world property is set, the Viewport stores a unique resource for the world. With this change it keeps being updated from changes made to the world property instead of storing a default empty world with environment settings that can't be modified.

Fixes #23412

@akien-mga
Copy link
Member

It would be better to leave out cosmetic style changes as they make the functional changes harder to review in the diff.

We'll do all cosmetic changes using tools like clang-format or clang-tidy in one or more commits touching the whole codebase. As such making some early changes now just makes the diff and git blame noisier.

You can of course use the consensual style on the added/modified code.

@akien-mga akien-mga added this to the 3.2 milestone Nov 29, 2019
@akien-mga akien-mga requested a review from reduz November 29, 2019 10:35
@pouleyKetchoupp
Copy link
Contributor Author

Good to know! I'll revert these and restrain myself in the future.

When own_world property is set, the viewport stores a unique resource for the world. With this change it keeps being updated from changes made to the world property instead of storing a default empty world with environment settings that can't be modified.

Fixes godotengine#23412
@hammeron-art
Copy link

Great fix!
Please merge this. Can't use multiple viewports with their own worlds without this fix.

@akien-mga akien-mga requested a review from RandomShaper January 6, 2020 14:16
@akien-mga akien-mga merged commit ce75a2f into godotengine:master Jan 6, 2020
@akien-mga
Copy link
Member

Thanks!

@pouleyKetchoupp pouleyKetchoupp deleted the own-world-environment branch January 6, 2020 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Own World" Environment in Viewport isn't applied
3 participants