Godot Engine – Multi-platform 2D and 3D game engine
Fix crash in GLTFNode.get_scene_node_path
AegisTTNc77ba84d6fee
diff --git a/modules/gltf/structures/gltf_node.cpp b/modules/gltf/structures/gltf_node.cppindex dc4f28154c6..980c214db9f 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<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;