Skip to content

Commit

Permalink
Fix #1541 Animation Length slider does not update
Browse files Browse the repository at this point in the history
Fix minor issue from prior commits
  • Loading branch information
JannisX11 committed Aug 25, 2022
1 parent 74c8f17 commit d721685
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion js/animations/animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,8 @@ const Animator = {
if (Group.selected) {
Group.selected.select();
}
Animator.preview()
BarItems.slider_animation_length.update();
Animator.preview();
},
leave() {
Timeline.pause()
Expand Down
1 change: 0 additions & 1 deletion js/interface/menu_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ const MenuBar = {
'_',
'flip_texture_x',
'flip_texture_y',
'mirror_painting',
'resize_texture'
], {
condition: {modes: ['paint']}
Expand Down
8 changes: 4 additions & 4 deletions js/modeling/mesh_editing.js
Original file line number Diff line number Diff line change
Expand Up @@ -1035,12 +1035,12 @@ BARS.defineActions(function() {
]

let c1_uv_coords = [
Math.lerp(face.uv[side_vertices[0]][0], face.uv[side_vertices[1]][0], offset/100),
Math.lerp(face.uv[side_vertices[0]][1], face.uv[side_vertices[1]][1], offset/100),
Math.lerp(face.uv[side_vertices[0]][0], face.uv[side_vertices[1]][0], offset/length),
Math.lerp(face.uv[side_vertices[0]][1], face.uv[side_vertices[1]][1], offset/length),
];
let c2_uv_coords = [
Math.lerp(face.uv[opposite_vertices[0]][0], face.uv[opposite_vertices[1]][0], offset/100),
Math.lerp(face.uv[opposite_vertices[0]][1], face.uv[opposite_vertices[1]][1], offset/100),
Math.lerp(face.uv[opposite_vertices[0]][0], face.uv[opposite_vertices[1]][0], offset/length),
Math.lerp(face.uv[opposite_vertices[0]][1], face.uv[opposite_vertices[1]][1], offset/length),
];

let new_face = new MeshFace(mesh, face).extend({
Expand Down

0 comments on commit d721685

Please sign in to comment.