mirror of
https://github.com/penpot/penpot.git
synced 2026-08-08 22:08:39 +00:00
Entering path edit on a non-path shape (image/rect/circle) wrote :content into the file objects map before the shape was converted, producing a Frankenstein shape that could later become a :path without :content and fail backend validation with :data-validation. - start-editing-selected now emits dwsh/update-shapes convert-to-path before start-path-edit for image/rect/circle shapes. - st/set-content asserts the target is a :path/:bool shape so any future regression surfaces locally instead of corrupting the file. - Add frontend tests covering the convert-first ordering, the set-content guard, and that convert-to-path emits a :set :content op. AI-assisted-by: hy3-free