diff --git a/js/io/project.js b/js/io/project.js index 8d84d652..5efd1c02 100644 --- a/js/io/project.js +++ b/js/io/project.js @@ -683,13 +683,13 @@ function updateProjectResolution() { UVEditor.vue.uv_resolution.replace([Project.texture_width, Project.texture_height]); UVEditor.vue.updateSize() } - Canvas.uvHelperMaterial.uniforms.DENSITY.value = Project.texture_width / 32; if (Texture.selected) { // Update animated textures Texture.selected.height++; Texture.selected.height--; } } + Canvas.uvHelperMaterial.uniforms.DENSITY.value = Project.texture_width / 32; Blockbench.dispatchEvent('update_project_resolution', {project: Project}); } diff --git a/js/outliner/cube.js b/js/outliner/cube.js index de370bbc..6053ed9c 100644 --- a/js/outliner/cube.js +++ b/js/outliner/cube.js @@ -1183,7 +1183,7 @@ new NodePreviewController(Cube, { let vertex_uvs = mesh.geometry.attributes.uv; let pw = Project.texture_width; let ph = Project.texture_height; - if (tex && Format.per_texture_uv_size) { + if (tex && Format.per_texture_uv_size && Project.view_mode !== 'uv') { pw = tex.getUVWidth(); ph = tex.getUVHeight(); } diff --git a/js/outliner/mesh.js b/js/outliner/mesh.js index 14ca0c86..afc486ce 100644 --- a/js/outliner/mesh.js +++ b/js/outliner/mesh.js @@ -1112,7 +1112,7 @@ new NodePreviewController(Mesh, { stretch = tex.frameCount frame = tex.currentFrame || 0; } - let uv_size = tex + let uv_size = (tex && Project.view_mode !== 'uv') ? [tex.getUVWidth(), tex.getUVHeight()] : [Project.texture_width, Project.texture_height];