-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
CylinderShape and HeightMapShape GodotPhysics error on project startup (due to EditorHelp generation) #32216
Comments
To clarify, the error is expected if one uses CylinderShape in a GodotPhysics project, as it's indeed not implemented for GodotPhysics. But the error here happens on any project, even a 2D one. The reason for that is that CylinderShape is instantiated to retrieve default values by the in-editor help:
There's no easy fix for that, as EditorHelp processes everything registered to ClassDB. So if we want to exclude CylinderShape, we need a way to mark it as unimplemented so that EditorHelp ignores it... or we should drop it from the engine as it's weird to have built-in shapes that work only with a specific physics backend. It was added back when we expected that GodotPhysics would eventually be removed completely, but this is no longer the plan. |
For the reference, the currently closed PR #32272 would have been a possible fix for this indeed. #32272 (comment) might need to be re-evaluated (if they're meant to be implemented, we could add stubs to avoid the errors, if not, they should be bullet only). |
Updated the title, because these errors are generated just by enabling Godot physics:
|
IIRC, this wasn't an issue back in 3.2-alpha, because GodotPhysics is what I've been using all this time for 2D, and could only be reproduced by |
This is due to #29380 which queries the whole API to retrieve default values for the docs. Though its merge predates this issue, so I would expect it to have raised errors with GodotPhysics selected back then too. |
#45854 implements support for CylinderShape3D, so that part should no longer trigger a warning. HeightMapShape3D is still missing though. |
The last issue was fixed with #47347 so closing. |
Godot version:
3.2-alpha, 2add51d
OS/device including version:
Windows 10
Issue description:
Opening a project without Bullet module compiled leads to these errors (I'm working on a 2D project).
Also present along with #32217.
Steps to reproduce:
scons platform=windows tools=yes target=debug bits=64 module_bullet_enabled=no
Expected behavior:
No errors on project startup when Bullet-related physics are not used in the project.
CC @AndreaCatania for Bullet module.
The text was updated successfully, but these errors were encountered: