mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-23 16:00:45 +01:00
A save no longer flattens each channel into a "PhotoCraft: <channel>" fill. The stack now follows the document's structure: - Every sent node carries a layer id (from 0x40000000; PhotoCraft keeps ids across saves) and the send records what it stands for and a fingerprint of its mask and pixels, so a save is compared node by node. - Sent folders and layers keep their identity; renames, visibility, order, masks (as a painted mask), blending and removals follow the document. A repainted channel becomes that channel's paint, turning a procedural layer into a paint layer that keeps its other channels. - New groups become folders and new pixel layers become paint layers in the channel their name says, matched in any case and spacing or by a common name (Albedo, Bump, Metalness, ...). "Base Color" was missed before because only the exact label matched. - A layer whose name says no channel comes in with no channel on; the new layer.assignChannel command, offered from a warning marker on the layer row, gives it one, converting the painting when needed. The PSD reader now returns layer ids, and the writer accepts them.