Skip to content

Commit 0f04d5c

Browse files
committed
Fix editor segfault when using a path3d without a curve3d
1 parent 2d113cc commit 0f04d5c

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)