diff --git a/editor_modules/gltf/extensions/gltf_document_extension.cpp b/editor_modules/gltf/extensions/gltf_document_extension.cpp index 9ac2559ac..9839abd97 100644 --- a/editor_modules/gltf/extensions/gltf_document_extension.cpp +++ b/editor_modules/gltf/extensions/gltf_document_extension.cpp @@ -150,8 +150,8 @@ void GLTFDocumentExtension::convert_scene_node(Ref p_state, Ref p_state, Ref p_gltf_node, Dictionary &r_dict, Node *p_node) { - ERR_FAIL_COND(p_state.is_null(), ERR_INVALID_PARAMETER); - ERR_FAIL_COND(p_gltf_node.is_null(), ERR_INVALID_PARAMETER); + ERR_FAIL_COND_V(p_state.is_null(), ERR_INVALID_PARAMETER); + ERR_FAIL_COND_V(p_gltf_node.is_null(), ERR_INVALID_PARAMETER); ERR_FAIL_NULL_V(p_node, ERR_INVALID_PARAMETER); ScriptInstance *si = get_script_instance(); if (!si) {