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 {
|
} 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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user