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

Fix some additional errors with 3D disabled #88704

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

AThousandShips
Copy link
Member

@AThousandShips AThousandShips commented Feb 23, 2024

  • Disabled 2D navigation tests as they do not work
  • Unbound some Mesh methods that rely on 3D resources
  • Unexposed World3D as it depends on physics (and isn't useful)
  • Unexposed some Viewport vrs related properties that had unexposed methods

With these changes tests run equivalently in template_debug to the normal build, and with the tests for ClassDB this should indicate that all the methods exposed in this build works correctly at least in that their arguments and return values are exposed types

Edit: Fixed some includes

@AThousandShips
Copy link
Member Author

AThousandShips commented Feb 23, 2024

Gonna add some minor fixes to error prints that just clutters, intended behavior

Edit: These are actually 3D only classes so will remove those tests

Edit 2: Done, will look at some of the ArrayMesh functionality later which depends on some classes but the tests work so just a future improvement

@AThousandShips AThousandShips marked this pull request as draft February 23, 2024 12:50
@AThousandShips AThousandShips marked this pull request as ready for review February 23, 2024 12:56
* Disabled 2D navigation tests as they do not work
* Disabled tests for primitive meshes
* Unbound some `Mesh` methods that rely on 3D resources
* Unexposed `World3D` as it depends on physics (and isn't useful)
* Unexposed some `Viewport` vrs related properties that had unexposed
  methods
Comment on lines +357 to +359
#ifndef _3D_DISABLED
Engine::get_singleton()->add_singleton(Engine::Singleton("PhysicsServer3D", PhysicsServer3D::get_singleton(), "PhysicsServer3D"));
#endif // _3D_DISABLED
Copy link
Member Author

@AThousandShips AThousandShips Feb 23, 2024

Choose a reason for hiding this comment

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

This is only accidentally included via world_3d.h but it's broken and will likely crash (haven't tested if it does)

@akien-mga akien-mga merged commit 080f201 into godotengine:master Feb 23, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@AThousandShips AThousandShips deleted the no_3d_fix_2 branch February 23, 2024 21:29
@AThousandShips
Copy link
Member Author

Thank you!

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.

2 participants