Skip to content

Persist editor viewport splitter ratios on editor restart#116019

Merged
akien-mga merged 1 commit into
godotengine:masterfrom
Open-Industry-Project:save-viewport-splitter-ratio
Mar 23, 2026
Merged

Persist editor viewport splitter ratios on editor restart#116019
akien-mga merged 1 commit into
godotengine:masterfrom
Open-Industry-Project:save-viewport-splitter-ratio

Conversation

@ryevdokimov

Copy link
Copy Markdown
Contributor

So, they don't have to be readjusted every time.

Comment thread editor/scene/3d/node_3d_editor_plugin.cpp
@ryevdokimov ryevdokimov force-pushed the save-viewport-splitter-ratio branch from 77071d8 to 6303078 Compare March 15, 2026 01:34

@kitbdev kitbdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, looks good.

This could maybe store as a ratio for better behavior when changing scale, but it might depend on how you see the viewports, not sure. It's not important though, this approach works as is, so its fine.

I noticed that if you don't manually save, then adjusting the split mode and offsets don't save. This is unrelated though, and probably fixed by making it into a dock (#113051) and using that to save.

@kitbdev kitbdev modified the milestones: 4.x, 4.7 Mar 16, 2026
@akien-mga akien-mga merged commit 987c77f into godotengine:master Mar 23, 2026
20 checks passed
@akien-mga

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment