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:
+2
-2
@@ -206,7 +206,7 @@ TEST_CASE("[Object] Script instance property getter") {
|
||||
}
|
||||
|
||||
TEST_CASE("[Object] Built-in property setter") {
|
||||
ClassDB::register_class<_TestDerivedObject>();
|
||||
GDREGISTER_CLASS(_TestDerivedObject);
|
||||
_TestDerivedObject derived_object;
|
||||
|
||||
bool valid = false;
|
||||
@@ -218,7 +218,7 @@ TEST_CASE("[Object] Built-in property setter") {
|
||||
}
|
||||
|
||||
TEST_CASE("[Object] Built-in property getter") {
|
||||
ClassDB::register_class<_TestDerivedObject>();
|
||||
GDREGISTER_CLASS(_TestDerivedObject);
|
||||
_TestDerivedObject derived_object;
|
||||
derived_object.set_property(100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user