From 60eb2824bdc99657441e1676dba50b673fc555da Mon Sep 17 00:00:00 2001 From: AegisTTN Date: Sun, 12 Jul 2026 20:20:28 +0100 Subject: [PATCH] Fix crash in GLTFNode.get_scene_node_path (cherry picked from commit c77ba84d6fee2dfcaa5fe0ece77ce1f687053acb) --- modules/gltf/structures/gltf_node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gltf/structures/gltf_node.cpp b/modules/gltf/structures/gltf_node.cpp index dc4f28154c..980c214db9 100644 --- a/modules/gltf/structures/gltf_node.cpp +++ b/modules/gltf/structures/gltf_node.cpp @@ -212,6 +212,7 @@ void GLTFNode::set_additional_data(const StringName &p_extension_name, Variant p } NodePath GLTFNode::get_scene_node_path(Ref p_state, bool p_handle_skeletons) { + ERR_FAIL_COND_V_MSG(p_state.is_null(), NodePath(), "Cannot get scene node path because GLTFState is null."); Vector path; Vector subpath; Ref current_gltf_node = this;