Fix vector mesh fills rendering incorrectly by splitting into separate subpaths

Closed
RA
9mo ago
+42-5

Summary

This PR fixes an issue where vector mesh fills were rendered as a single merged path rather than multiple independent subpaths.

When a mesh contains multiple disconnected regions, the renderer previously treated them as one path, which resulted in incorrect fill behavior.

This change ensures each region is rendered as its own subpath before fill processing.

Changes

  • Extract mesh regions into independent subpaths
  • Update renderer path construction logic
  • Improve mesh iteration clarity

Result

Vector meshes containing multiple disconnected regions now render correctly.

Testing

Tested with:

  • multiple independent shapes
  • complex mesh geometry
  • overlapping regions

All now render with correct fill separation.

Related Issue

Fixes #3378