mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Remove FillType::None for the fill node (#1572)
* Remove FillType::None for the fill node * Fix demo art
This commit is contained in:
parent
e0adf1040f
commit
47b3355950
7 changed files with 6 additions and 8 deletions
|
@ -209,7 +209,6 @@ impl Fill {
|
|||
#[repr(C)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize, DynAny, Hash, specta::Type)]
|
||||
pub enum FillType {
|
||||
None,
|
||||
Solid,
|
||||
Gradient,
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ fn set_vector_data_fill(
|
|||
positions: Vec<(f64, Option<Color>)>,
|
||||
) -> VectorData {
|
||||
vector_data.style.set_fill(match fill_type {
|
||||
FillType::None | FillType::Solid => solid_color.map_or(Fill::None, Fill::Solid),
|
||||
FillType::Solid => solid_color.map_or(Fill::None, Fill::Solid),
|
||||
FillType::Gradient => Fill::Gradient(Gradient {
|
||||
start,
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue