-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Disable debug draw modes in the 3D editor according to current rendering method #93673
base: master
Are you sure you want to change the base?
Disable debug draw modes in the 3D editor according to current rendering method #93673
Conversation
a4824bb
to
31663a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the feedback also applies to the duplicated descriptions in Viewport.
31663a1
to
0746718
Compare
…ing method - Add tooltips to some debug draw modes, including when it's unsupported due to the current rendering method in use. - Improve documentation related to debug draw modes.
0746718
to
fa46a3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the class reference side of things this is fine
disabled_tooltip = TTR("This debug draw mode is not supported when using the Compatibility rendering method."); | ||
break; | ||
case SupportedRenderingMethods::FORWARD_PLUS: | ||
disabled = OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "mobile"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disabled = OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "mobile"; | |
disabled = OS::get_singleton()->get_current_rendering_method() != "forward_plus"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While your suggestion currently does the same thing in practice, it's less semantically correct. It may matter in the future if we have a Cinematic rendering method (as mentioned in this gist), as this rendering method would likely support all debug draw modes.
Preview
Mobile
Compatibility