mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-18 15:26:19 +08:00
Fix UV snapping using only initial keys
Fix color picker Z index in dialog Resolve todos
This commit is contained in:
parent
6907ebeecc
commit
5e612e8d38
@ -17,7 +17,7 @@ License: MIT
|
||||
overflow: hidden;
|
||||
}
|
||||
.sp-container:not(.sp-flat) {
|
||||
z-index: 22;
|
||||
z-index: 42;
|
||||
}
|
||||
.sp-container.sp-flat {
|
||||
position: relative;
|
||||
|
@ -191,7 +191,6 @@ function buildSkinnedMesh(root_group, scale) {
|
||||
for (let i = 0; i < geometry.attributes.position.count; i++) {
|
||||
vertex.fromBufferAttribute(geometry.attributes.position, i);
|
||||
normal.fromBufferAttribute(geometry.attributes.normal, i);
|
||||
// todo: apply transform
|
||||
vertex.applyMatrix4(matrix);
|
||||
normal.transformDirection(matrix);
|
||||
|
||||
|
@ -102,7 +102,7 @@ async function loadImages(files, event) {
|
||||
if (Condition(Panels.textures.condition)) {
|
||||
options.texture = 'action.import_texture';
|
||||
}
|
||||
options.reference_image = 'Reference Image';// todo: translation
|
||||
options.reference_image = 'data.reference_image';
|
||||
}
|
||||
options.edit = 'message.load_images.edit_image';
|
||||
if (img.naturalHeight == img.naturalWidth && [64, 128].includes(img.naturalWidth)) {
|
||||
|
@ -953,7 +953,6 @@ BARS.defineActions(function() {
|
||||
'_',
|
||||
/** Todo: add options
|
||||
* Center
|
||||
* Delete
|
||||
*/
|
||||
{
|
||||
name: 'menu.texture.properties',
|
||||
|
@ -2479,9 +2479,11 @@ Interface.definePanels(function() {
|
||||
let last_pos = [0, 0];
|
||||
let viewport = this.$refs.viewport;
|
||||
let initial_scroll_offset = [viewport.scrollLeft, viewport.scrollTop];
|
||||
let original_snap = snap;
|
||||
function drag(e1) {
|
||||
convertTouchEvent(e1);
|
||||
let step_x, step_y;
|
||||
let snap = original_snap;
|
||||
|
||||
if (snap == undefined) {
|
||||
snap = UVEditor.grid / canvasGridSize(e1.shiftKey || Pressing.overrides.shift, e1.ctrlOrCmd || Pressing.overrides.ctrl);
|
||||
|
Loading…
Reference in New Issue
Block a user