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:
Ellen Gu 2025-03-09 15:18:42 -04:00 committed by GitHub
parent 56662339cc
commit 74b6abbb97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 35 additions and 13 deletions

View file

@ -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
}
}
}

View file

@ -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;
}