mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-17 20:12:17 +00:00
4003e3172d
- The brush stroke paints while points are placed and dragged (3D and 2D); applying is one undo step, Esc removes the unfinished path - Click the curve to insert a point, select a point and remove it with Backspace or the Remove point button; undo steps through point changes - The selected layer's other paths are drawn (lit under the pointer) and a click opens one for editing; 3D lines follow where their paint lands - A path repaint recomposites only the tiles it changed, not the whole set - Pen pointer for the tool; new paths start open; Apply/Cancel removed - Switching texture sets applies a path being placed first Closes #333
14 lines
412 B
Rust
14 lines
412 B
Rust
//! A new Path tool path previewed in the document before it is applied
|
|
|
|
use serde_json::Value;
|
|
|
|
use crate::Document;
|
|
|
|
/// A new path previewed in the document before it is applied
|
|
pub(crate) struct PathDraft {
|
|
/// The document before the preview
|
|
pub(crate) base: Document,
|
|
/// What painting the preview last reported (the commit's report when nothing changed since)
|
|
pub(crate) painted: Value,
|
|
}
|