summaryrefslogtreecommitdiff
path: root/modules/gdnative/nativescript
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-11-14 20:44:55 +0100
committerGitHub <noreply@github.com>2017-11-14 20:44:55 +0100
commit61a693cf782c952dc151d8d77b1ab365888e6701 (patch)
treef6e629e3b1a4546105edcd0ea9a5bb130b9198f0 /modules/gdnative/nativescript
parent04edfc090b0e78f4f820977da8cb4eb2d015c5f7 (diff)
parentacb23adad37b459e64b8f9bafbbdd1185d46093d (diff)
Merge pull request #12922 from eska014/engine-singletons
Singleton management changes
Diffstat (limited to 'modules/gdnative/nativescript')
-rw-r--r--modules/gdnative/nativescript/api_generator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/nativescript/api_generator.cpp b/modules/gdnative/nativescript/api_generator.cpp
index 63fb71feb6..f9d699fb59 100644
--- a/modules/gdnative/nativescript/api_generator.cpp
+++ b/modules/gdnative/nativescript/api_generator.cpp
@@ -32,9 +32,9 @@
#ifdef TOOLS_ENABLED
#include "core/class_db.h"
+#include "core/engine.h"
#include "core/global_constants.h"
#include "core/pair.h"
-#include "core/project_settings.h"
#include "os/file_access.h"
// helper stuff
@@ -177,7 +177,7 @@ List<ClassAPI> generate_c_api_classes() {
if (name.begins_with("_")) {
name.remove(0);
}
- class_api.is_singleton = ProjectSettings::get_singleton()->has_singleton(name);
+ class_api.is_singleton = Engine::get_singleton()->has_singleton(name);
}
class_api.is_instanciable = !class_api.is_singleton && ClassDB::can_instance(class_name);