mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-01 20:12:15 +00:00
Fix fill tool on raster image temporarily breaking the graph (#2398)
* Fix fill tool on raster image temporarily breaks the graph * Avoid vector filling raster layer via checking node category * check raster image using input type instead * Add additional check for TextureFrameTable * Enable the ignore raster test --------- Co-authored-by: hypercube <0hypercube@gmail.com>
This commit is contained in:
parent
56662339cc
commit
74b6abbb97
11 changed files with 35 additions and 13 deletions
|
@ -87,7 +87,14 @@ impl Hash for ImageTexture {
|
|||
|
||||
impl PartialEq for ImageTexture {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.texture == other.texture
|
||||
#[cfg(feature = "wgpu")]
|
||||
{
|
||||
self.texture == other.texture
|
||||
}
|
||||
#[cfg(not(feature = "wgpu"))]
|
||||
{
|
||||
true // Unit values are always equal
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,7 @@ impl SegmentModification {
|
|||
let start = self.handle_primary.get(&id).copied().map(|handle| handle.map(|handle| handle + start));
|
||||
let end = self.handle_end.get(&id).copied().map(|handle| handle.map(|handle| handle + end));
|
||||
|
||||
if !start.unwrap_or_default().map_or(true, |start| start.is_finite()) || !end.unwrap_or_default().map_or(true, |end| end.is_finite()) {
|
||||
if !start.unwrap_or_default().is_none_or(|start| start.is_finite()) || !end.unwrap_or_default().is_none_or(|end| end.is_finite()) {
|
||||
warn!("Invalid handles when applying a segment modification");
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue