Skip to content

Move editor viewport gizmos visibility logic out of process notification#102020

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Open-Industry-Project:move-viewport-gizmos-visibility-out-of-process
Oct 21, 2025
Merged

Move editor viewport gizmos visibility logic out of process notification#102020
Repiteo merged 1 commit intogodotengine:masterfrom
Open-Industry-Project:move-viewport-gizmos-visibility-out-of-process

Conversation

@ryevdokimov
Copy link
Contributor

@ryevdokimov ryevdokimov commented Jan 25, 2025

Requires and includes: #102014

Related: godotengine/godot-proposals#11424 (comment)

It doesn't make much sense to do this every frame, also prevents plugins from toggling visibility since it's constantly being overwritten.

@ryevdokimov ryevdokimov requested a review from a team January 25, 2025 13:22
@AThousandShips AThousandShips added this to the 4.x milestone Jan 25, 2025
@ryevdokimov ryevdokimov force-pushed the move-viewport-gizmos-visibility-out-of-process branch from 329c11f to 9355a9b Compare January 26, 2025 16:52
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally, it mostly works as expected.

Testing project: test-multiple-cameras.zip

However, the issue that #102014 addressed with the rotation gizmo appearing after restarting the editor is back, at least when previewing multiple cameras with multiple viewports:

image

It's possible that this also occurs with #102014 alone, as I didn't test multiple viewports back then.

@ryevdokimov ryevdokimov force-pushed the move-viewport-gizmos-visibility-out-of-process branch from 9355a9b to 1a8c487 Compare January 27, 2025 20:04
@ryevdokimov
Copy link
Contributor Author

ryevdokimov commented Jan 27, 2025

Fixed, and tested with multiple viewports. I'm not sure how I missed this. 😵‍💫

@ryevdokimov ryevdokimov force-pushed the move-viewport-gizmos-visibility-out-of-process branch from 1a8c487 to 36d737d Compare April 27, 2025 00:57
@ryevdokimov
Copy link
Contributor Author

Rebased since #102014 was merged.

@ryevdokimov ryevdokimov force-pushed the move-viewport-gizmos-visibility-out-of-process branch from 36d737d to 072ee10 Compare July 8, 2025 19:10
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Works great now 🙂

I can confirm the gizmos are gone on previewed viewports, even after a restart:

image

It also works with Cinematic Preview.

@Repiteo Repiteo modified the milestones: 4.x, 4.6 Oct 21, 2025
@Repiteo Repiteo merged commit 920fd5c into godotengine:master Oct 21, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Oct 21, 2025

Thanks!

@ryevdokimov ryevdokimov deleted the move-viewport-gizmos-visibility-out-of-process branch October 21, 2025 20:30
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.

4 participants