diff options
| author | Ignacio Etcheverry | 2017-08-19 01:02:56 +0200 |
|---|---|---|
| committer | Ignacio Etcheverry | 2017-08-19 01:29:45 +0200 |
| commit | 90b8a5b71ef79e0339826507c4b290f0c51b7cd2 (patch) | |
| tree | 6f24bbc63ef9674687589f9ec9017e9fd09d266e /modules/gdnative/gdnative.cpp | |
| parent | fd69604bd9dc743494a7818f25f384cc7f521b33 (diff) | |
| download | godot-90b8a5b71ef79e0339826507c4b290f0c51b7cd2.tar.gz godot-90b8a5b71ef79e0339826507c4b290f0c51b7cd2.tar.zst godot-90b8a5b71ef79e0339826507c4b290f0c51b7cd2.zip | |
Diffstat (limited to 'modules/gdnative/gdnative.cpp')
| -rw-r--r-- | modules/gdnative/gdnative.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/gdnative.cpp b/modules/gdnative/gdnative.cpp index 440cc4547..fc4fc5c10 100644 --- a/modules/gdnative/gdnative.cpp +++ b/modules/gdnative/gdnative.cpp @@ -229,7 +229,7 @@ bool GDNative::initialize() { godot_gdnative_init_options options; - options.in_editor = SceneTree::get_singleton()->is_editor_hint(); + options.in_editor = Engine::get_singleton()->is_editor_hint(); options.core_api_hash = ClassDB::get_api_hash(ClassDB::API_CORE); options.editor_api_hash = ClassDB::get_api_hash(ClassDB::API_EDITOR); options.no_api_hash = ClassDB::get_api_hash(ClassDB::API_NONE); @@ -265,7 +265,7 @@ bool GDNative::terminate() { // TODO(karroffel): remove this? Should be part of NativeScript, not // GDNative IMO godot_gdnative_terminate_options options; - options.in_editor = SceneTree::get_singleton()->is_editor_hint(); + options.in_editor = Engine::get_singleton()->is_editor_hint(); library_terminate_pointer(&options); |
