diff --git a/modules/gltf/doc_classes/GLTFDocument.xml b/modules/gltf/doc_classes/GLTFDocument.xml index 77c45da34d1..8d8e25e8b3a 100644 --- a/modules/gltf/doc_classes/GLTFDocument.xml +++ b/modules/gltf/doc_classes/GLTFDocument.xml @@ -31,7 +31,7 @@ - + diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index c7818e7e86d..ba98592600a 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -6887,7 +6887,8 @@ TypedArray GLTFDocument::get_extensions() const { } GLTFDocument::GLTFDocument() { - if (!::Engine::get_singleton()->is_editor_hint()) { + bool is_editor = ::Engine::get_singleton()->is_editor_hint(); + if (is_editor) { return; } Ref extension_editor;