From 0f04d5ce535a11f52b5322e10dc894846ed58ea5 Mon Sep 17 00:00:00 2001 From: Mike Precup Date: Mon, 28 Jul 2025 11:35:21 -0700 Subject: [PATCH] Fix editor segfault when using a path3d without a curve3d --- editor/scene/3d/path_3d_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene/3d/path_3d_editor_plugin.cpp b/editor/scene/3d/path_3d_editor_plugin.cpp index 94a42671e7a..8ac32394e10 100644 --- a/editor/scene/3d/path_3d_editor_plugin.cpp +++ b/editor/scene/3d/path_3d_editor_plugin.cpp @@ -741,7 +741,7 @@ void Path3DEditorPlugin::edit(Object *p_object) { } else { Path3D *pre = path; path = nullptr; - if (pre) { + if (pre && pre->get_curve().is_valid()) { pre->get_curve()->emit_signal(CoreStringName(changed)); } }