Fix brush bounding boxes by making BrushCacheImpl's hash not shared between different instances (#2845)

* fix: add cache to each layer

* fix: warning

* fix: tests

* Clean up code

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
mTvare
2025-07-09 06:45:41 +00:00
committed by GitHub
co-authored by Keavon Chambers
parent 00236c8136
commit a40de58c7c
4 changed files with 45 additions and 49 deletions
+1 -1
View File
@@ -403,7 +403,7 @@ mod test {
blend_mode: BlendMode::Normal,
},
}],
BrushCache::new_proto(),
BrushCache::default(),
)
.await;
assert_eq!(image.instance_ref_iter().next().unwrap().instance.width, 20);