Fix editor segfault when using a path3d without a curve3d
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user