mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Removes editor_hint from SceneTree
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user