From 67891fee5752eb46eb3f6370c10080ba3239935f Mon Sep 17 00:00:00 2001 From: Nasheeth Ahmed A Date: Fri, 1 Aug 2025 11:20:56 +0530 Subject: [PATCH] Update toolbar on curve change in Path3D editor Added a signal connection to update the Path3D editor toolbar when the curve changes, ensuring the UI stays in sync with curve modifications. --- editor/scene/3d/path_3d_editor_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/scene/3d/path_3d_editor_plugin.cpp b/editor/scene/3d/path_3d_editor_plugin.cpp index 8ac32394e1..dcb6c359b5 100644 --- a/editor/scene/3d/path_3d_editor_plugin.cpp +++ b/editor/scene/3d/path_3d_editor_plugin.cpp @@ -548,6 +548,7 @@ Path3DGizmo::Path3DGizmo(Path3D *p_path, float p_disk_size) { // Connecting to a signal once, rather than plaguing the implementation with calls to `Node3DEditor::update_transform_gizmo`. path->connect("curve_changed", callable_mp(this, &Path3DGizmo::_update_transform_gizmo)); + path->connect("curve_changed", callable_mp(Path3DEditorPlugin::singleton, &Path3DEditorPlugin::_update_toolbar)); path->connect("debug_color_changed", callable_mp(this, &Path3DGizmo::redraw)); Path3DEditorPlugin::singleton->curve_edit->connect(SceneStringName(pressed), callable_mp(this, &Path3DGizmo::redraw));