mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-02-17 16:20:13 +08:00
Fix #2090 Move Texture with UV cuts off texture
This commit is contained in:
parent
a96f528a50
commit
57124f258e
@ -2625,6 +2625,7 @@ Interface.definePanels(function() {
|
||||
this.texture.edit(canvas => {
|
||||
let tex_ctx = canvas.getContext('2d');
|
||||
ctx.beginPath();
|
||||
tex_ctx.save();
|
||||
tex_ctx.beginPath();
|
||||
UVEditor.getMappableElements().forEach(el => {
|
||||
if (el instanceof Mesh) {
|
||||
@ -2667,6 +2668,7 @@ Interface.definePanels(function() {
|
||||
ctx.drawImage(this.texture.img, 0, 0);
|
||||
tex_ctx.clip();
|
||||
tex_ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
tex_ctx.restore();
|
||||
}, {no_undo: true})
|
||||
|
||||
UVEditor.vue.$refs.frame.append(overlay_canvas);
|
||||
|
Loading…
Reference in New Issue
Block a user