Fix crash in GLTFNode.get_scene_node_path

(cherry picked from commit c77ba84d6fee2dfcaa5fe0ece77ce1f687053acb)
This commit is contained in:
AegisTTN authored and Thaddeus Crews committed 2026-07-13 10:56:07 -05:00
1 parent 1ba7fea71f
commit 60eb2824bd
1 file changed
+1
+1
View File
@@ -212,6 +212,7 @@ void GLTFNode::set_additional_data(const StringName &p_extension_name, Variant p
}
NodePath GLTFNode::get_scene_node_path(Ref<GLTFState> 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<StringName> path;
Vector<StringName> subpath;
Ref<GLTFNode> current_gltf_node = this;