diff options
author | reduz <reduzio@gmail.com> | 2021-07-11 19:30:33 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-07-13 09:25:14 -0300 |
commit | 5ad4f26659b435add8c4d36009be6a2222a0a624 (patch) | |
tree | dc19033d4ca18272ef5e8393ec95ff6667a903e1 /modules/webxr | |
parent | fc00a8390193220cea702d9ab684fb6c53d97a6b (diff) |
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.
Diffstat (limited to 'modules/webxr')
-rw-r--r-- | modules/webxr/register_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/webxr/register_types.cpp b/modules/webxr/register_types.cpp index 6df0234811..078a6547cf 100644 --- a/modules/webxr/register_types.cpp +++ b/modules/webxr/register_types.cpp @@ -34,7 +34,7 @@ #include "webxr_interface_js.h" void register_webxr_types() { - ClassDB::register_virtual_class<WebXRInterface>(); + GDREGISTER_VIRTUAL_CLASS(WebXRInterface); #ifdef JAVASCRIPT_ENABLED Ref<WebXRInterfaceJS> webxr; |