Fix issue with brushes restricting to cube faces

This commit is contained in:
JannisX11 2023-12-04 11:05:31 +01:00
parent 5eda6f9477
commit 57d23d6455

View File

@ -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();