Fix UV snapping using only initial keys

Fix color picker Z index in dialog
Resolve todos
This commit is contained in:
JannisX11 2023-04-17 14:30:51 +02:00
parent 6907ebeecc
commit 5e612e8d38
5 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -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)) {

View File

@ -953,7 +953,6 @@ BARS.defineActions(function() {
'_',
/** Todo: add options
* Center
* Delete
*/
{
name: 'menu.texture.properties',

View File

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