mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Fix issue with brushes restricting to cube faces
This commit is contained in:
parent
5eda6f9477
commit
57d23d6455
@ -295,8 +295,11 @@ const Painter = {
|
||||
if (!Painter.current.uv_rects) {
|
||||
Painter.current.uv_rects = new Map();
|
||||
}
|
||||
let val = Painter.current.uv_rects.get(uvTag);
|
||||
if (val) return val;
|
||||
let cached_rect = Painter.current.uv_rects.get(uvTag);
|
||||
if (cached_rect) {
|
||||
Painter.editing_area = cached_rect;
|
||||
return cached_rect;
|
||||
}
|
||||
|
||||
let rect;
|
||||
let uvFactorX = texture.width / texture.getUVWidth();
|
||||
|
Loading…
Reference in New Issue
Block a user