Fix the Path tool adding a Path node but not applying the change until a second attempt due to wrong segment IDs (#3727)

* Fix SegmentIds lost when no Path node exists

* fix import order

* Use Arc<Vector> in vector_data for regression
This commit is contained in:
Ayush Amawate
2026-02-14 04:10:38 +05:30
committed by GitHub
parent e606efd008
commit 119a554260
6 changed files with 32 additions and 5 deletions

View File

@@ -412,6 +412,7 @@ impl NodeGraphExecutor {
first_element_source_id,
click_targets,
clip_targets,
vector_data,
} = render_output.metadata;
// Run these update state messages immediately
@@ -422,6 +423,7 @@ impl NodeGraphExecutor {
});
responses.add(DocumentMessage::UpdateClickTargets { click_targets });
responses.add(DocumentMessage::UpdateClipTargets { clip_targets });
responses.add(DocumentMessage::UpdateVectorData { vector_data });
responses.add(DocumentMessage::RenderScrollbars);
responses.add(DocumentMessage::RenderRulers);
responses.add(OverlaysMessage::Draw);