mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-13 10:51:12 +00:00
Five fixes to the Image tool, from using it: - The layer now starts with no picture on it, so the panel opens on its empty frame with a plus in it. It used to seed the first shipped colour texture, which put somebody else's picture on screen before the user had chosen one. The frame is the only state the panel has until a picture is loaded, and clicking it is what creates the layer. - Its picker offers only the user's own images. The shipped library is grayscale height maps, which is what the displacement tool wants and the opposite of what an image bake can use: it prints colour, and a height map has none. The Built-in section is left out rather than shown full of things that would all warn when picked, and the import hints now talk about pictures instead of height maps. - The preview stopped tiling a layer that is not tiled. The shader had no tile_enabled uniform and wrapped the image unconditionally, so an untiled picture previewed as a repeating pattern the bake would never produce. in_tile() now draws the same line DecodedHeightTexture::sample() does, and gates the colour and all three relief paths on it. Both the 140 and the 110 variant; glslangValidator passes on each. - The panel docks against the right edge of the canvas, where the displacement panel is, with the same undock toggle in its title row, so the two tools do not put their controls in different corners. - The toolbar icon's frame is square and its stroke thinner. At 16 px scaled to the toolbar a 1 px stroke came out at 2.5 px, heavier than every neighbour; 0.75 px matches them.