Enable GLTFDocumentExtensionConvertImporterMesh only in games.
This commit is contained in:
parent
865b62b1cd
commit
fc1634806a
2 changed files with 3 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
<members>
|
<members>
|
||||||
<member name="extensions" type="GLTFDocumentExtension[]" setter="set_extensions" getter="get_extensions" default="[Object(GLTFDocumentExtensionConvertImporterMesh,"resource_local_to_scene":false,"resource_name":"","script":null)]">
|
<member name="extensions" type="GLTFDocumentExtension[]" setter="set_extensions" getter="get_extensions" default="[]">
|
||||||
</member>
|
</member>
|
||||||
</members>
|
</members>
|
||||||
</class>
|
</class>
|
||||||
|
|
|
@ -6887,7 +6887,8 @@ TypedArray<GLTFDocumentExtension> GLTFDocument::get_extensions() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
GLTFDocument::GLTFDocument() {
|
GLTFDocument::GLTFDocument() {
|
||||||
if (!::Engine::get_singleton()->is_editor_hint()) {
|
bool is_editor = ::Engine::get_singleton()->is_editor_hint();
|
||||||
|
if (is_editor) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Ref<GLTFDocumentExtensionConvertImporterMesh> extension_editor;
|
Ref<GLTFDocumentExtensionConvertImporterMesh> extension_editor;
|
||||||
|
|
Loading…
Add table
Reference in a new issue