You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #109220 from precup/avoid-spurious-curve-changed-signals
Remove spurious `Curve3D` `changed` signals
This commit is contained in:
@@ -730,24 +730,9 @@ EditorPlugin::AfterGUIInput Path3DEditorPlugin::forward_3d_gui_input(Camera3D *p
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Path3DEditorPlugin::edit(Object *p_object) {
|
void Path3DEditorPlugin::edit(Object *p_object) {
|
||||||
if (p_object) {
|
path = Object::cast_to<Path3D>(p_object);
|
||||||
path = Object::cast_to<Path3D>(p_object);
|
_update_toolbar();
|
||||||
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));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
update_overlays();
|
update_overlays();
|
||||||
//collision_polygon_editor->edit(Object::cast_to<Node>(p_object));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Path3DEditorPlugin::handles(Object *p_object) const {
|
bool Path3DEditorPlugin::handles(Object *p_object) const {
|
||||||
@@ -759,14 +744,7 @@ void Path3DEditorPlugin::make_visible(bool p_visible) {
|
|||||||
topmenu_bar->show();
|
topmenu_bar->show();
|
||||||
} else {
|
} else {
|
||||||
topmenu_bar->hide();
|
topmenu_bar->hide();
|
||||||
|
path = nullptr;
|
||||||
{
|
|
||||||
Path3D *pre = path;
|
|
||||||
path = nullptr;
|
|
||||||
if (pre && pre->get_curve().is_valid()) {
|
|
||||||
pre->get_curve()->emit_signal(CoreStringName(changed));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user