Skip to content

Commit f445b92

Browse files
committed
Merge pull request #109059 from precup/fix-path3d-gizmo-crash
Fix editor segfault when using a `Path3D` without a `Curve3D`
2 parents 0d10e85 + 0f04d5c commit f445b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/scene/3d/path_3d_editor_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ void Path3DEditorPlugin::edit(Object *p_object) {
741741
} else {
742742
Path3D *pre = path;
743743
path = nullptr;
744-
if (pre) {
744+
if (pre && pre->get_curve().is_valid()) {
745745
pre->get_curve()->emit_signal(CoreStringName(changed));
746746
}
747747
}

0 commit comments

Comments
 (0)