mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 09:22:58 -05:00
Importing vertex colors skipped the faces whose vertices were all on filament 1, but the test read "<= 2" for the third vertex, so a face with a filament 2 corner in that position lost its paint. It also assumed the object's filament is 1, while it is the filament of the first vertex. Skip only the faces that are entirely in the object's own filament. Only the command line reaches this since the GUI imports colors as textures. Ported from Snapmaker/OrcaSlicer@22fae6ccbf Co-authored-by: WongZzz <1184075697@qq.com>
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: