1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-03 16:55:53 +00:00

Remove spurious curve changed signals

This commit is contained in:
Mike Precup
2025-08-01 16:18:39 -07:00
parent c2202d36c1
commit 389ffd5b89

View File

@@ -730,24 +730,9 @@ EditorPlugin::AfterGUIInput Path3DEditorPlugin::forward_3d_gui_input(Camera3D *p
}
void Path3DEditorPlugin::edit(Object *p_object) {
if (p_object) {
path = Object::cast_to<Path3D>(p_object);
if (path) {
if (path->get_curve().is_valid()) {
path->get_curve()->emit_signal(CoreStringName(changed));
}
_update_toolbar();
}
} else {
Path3D *pre = path;
path = nullptr;
if (pre && pre->get_curve().is_valid()) {
pre->get_curve()->emit_signal(CoreStringName(changed));
}
}
path = Object::cast_to<Path3D>(p_object);
_update_toolbar();
update_overlays();
//collision_polygon_editor->edit(Object::cast_to<Node>(p_object));
}
bool Path3DEditorPlugin::handles(Object *p_object) const {
@@ -759,14 +744,7 @@ void Path3DEditorPlugin::make_visible(bool p_visible) {
topmenu_bar->show();
} else {
topmenu_bar->hide();
{
Path3D *pre = path;
path = nullptr;
if (pre && pre->get_curve().is_valid()) {
pre->get_curve()->emit_signal(CoreStringName(changed));
}
}
path = nullptr;
}
}