Implement the ability to disable classes
* This PR adds the ability to disable classes when building. * For now it's only possible to do this via command like: `scons disable_classes=RayCast2D,Area3D` * Eventually, a proper UI will be implemented to create a build config file to do this at large scale, as well as detect what is used in the project.
This commit is contained in:
parent
fc00a83901
commit
5ad4f26659
44 changed files with 789 additions and 757 deletions
|
|
@ -549,7 +549,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
|
||||
translation_server = memnew(TranslationServer);
|
||||
performance = memnew(Performance);
|
||||
ClassDB::register_class<Performance>();
|
||||
GDREGISTER_CLASS(Performance);
|
||||
engine->add_singleton(Engine::Singleton("Performance", performance));
|
||||
|
||||
// Only flush stdout in debug builds by default, as spamming `print()` will
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue