Removes editor_hint from SceneTree
This commit is contained in:
parent
fd69604bd9
commit
90b8a5b71e
47 changed files with 135 additions and 114 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue