Fix editor segfault when using a path3d without a curve3d

This commit is contained in:
Mike Precup
2025-07-28 11:35:21 -07:00
parent 2d113cc224
commit 0f04d5ce53

View File

@ -741,7 +741,7 @@ void Path3DEditorPlugin::edit(Object *p_object) {
} else { } else {
Path3D *pre = path; Path3D *pre = path;
path = nullptr; path = nullptr;
if (pre) { if (pre && pre->get_curve().is_valid()) {
pre->get_curve()->emit_signal(CoreStringName(changed)); pre->get_curve()->emit_signal(CoreStringName(changed));
} }
} }