summaryrefslogtreecommitdiffstats
path: root/modules/gltf/gltf_document.cpp
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2021-10-04 08:58:28 -0700
committerK. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>2021-10-04 09:47:34 -0700
commitfc1634806a7edd3f0e1d84538b8e876f68f2b94a (patch)
tree49a2f0810ef3f59948b8c64d6e49c7d460dd127c /modules/gltf/gltf_document.cpp
parent865b62b1cddbb7989bc520eed2d8428c6923fee9 (diff)
downloadredot-engine-fc1634806a7edd3f0e1d84538b8e876f68f2b94a.tar.gz
Enable GLTFDocumentExtensionConvertImporterMesh only in games.
Diffstat (limited to 'modules/gltf/gltf_document.cpp')
-rw-r--r--modules/gltf/gltf_document.cpp3
1 files changed, 2 insertions, 1 deletions
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<GLTFDocumentExtension> 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<GLTFDocumentExtensionConvertImporterMesh> extension_editor;