mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-31 07:38:24 +00:00
#1284: remove remaining double-click paint helpers
This commit is contained in:
1 parent
c51b461860
commit
bc1734f59e
2 files changed
+2
-4
No files matched your search
@@ -216,12 +216,10 @@ pub fn first_paint(layer: &Layer, lt: Tick) -> (Option<[f64; 4]>, Option<[f64; 4
|
||||
"fill" if fill.is_none() => fill = at("color").map(rgba),
|
||||
"stroke" if stroke.is_none() => {
|
||||
stroke = at("color").map(rgba);
|
||||
width = at("width").map(|v| v.as_f64());
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
if width.is_none() && matches!(g.match_id.as_str(), "stroke" | "gstroke") {
|
||||
width = at("width").map(|v| v.as_f64());
|
||||
}
|
||||
});
|
||||
}
|
||||
(fill, stroke, width)
|
||||
|
||||
@@ -78,7 +78,7 @@ pub(super) struct ShapeDrag {
|
||||
}
|
||||
|
||||
/// The kind `tool` draws, as `shape.newShape` / `layer.addMask` name it.
|
||||
pub(crate) fn shape_kind(tool: Tool) -> &'static str {
|
||||
fn shape_kind(tool: Tool) -> &'static str {
|
||||
match tool {
|
||||
Tool::Rectangle => "rect",
|
||||
Tool::RoundedRect => "rounded",
|
||||
|
||||
Reference in new issue
Block a user