From fc1634806a7edd3f0e1d84538b8e876f68f2b94a Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Mon, 4 Oct 2021 08:58:28 -0700 Subject: Enable GLTFDocumentExtensionConvertImporterMesh only in games. --- modules/gltf/doc_classes/GLTFDocument.xml | 2 +- modules/gltf/gltf_document.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/gltf/doc_classes/GLTFDocument.xml b/modules/gltf/doc_classes/GLTFDocument.xml index 77c45da34d..8d8e25e8b3 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 c7818e7e86..ba98592600 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; -- cgit v1.2.3