You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
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:
@@ -37,8 +37,8 @@ static JavaScript *javascript_eval;
|
||||
|
||||
void register_javascript_api() {
|
||||
JavaScriptToolsEditorPlugin::initialize();
|
||||
ClassDB::register_virtual_class<JavaScriptObject>();
|
||||
ClassDB::register_virtual_class<JavaScript>();
|
||||
GDREGISTER_VIRTUAL_CLASS(JavaScriptObject);
|
||||
GDREGISTER_VIRTUAL_CLASS(JavaScript);
|
||||
javascript_eval = memnew(JavaScript);
|
||||
Engine::get_singleton()->add_singleton(Engine::Singleton("JavaScript", javascript_eval));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user