Fix animation saving issue
This commit is contained in:
parent
669d7d2326
commit
de444f475d
@ -453,7 +453,6 @@
|
||||
/*Animations*/
|
||||
.panel#animations #animations_list {
|
||||
min-height: 126px;
|
||||
max-height: 294px;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.animation {
|
||||
|
@ -258,12 +258,14 @@ class Animation {
|
||||
|
||||
anim_keys.forEach(key => {
|
||||
let key_index = file_keys.indexOf(key);
|
||||
if (key_index < index) {
|
||||
if (key_index == -1) {
|
||||
//Skip
|
||||
} else if (key_index < index) {
|
||||
file_keys.splice(key_index, 1);
|
||||
file_keys.splice(index, 0, key);
|
||||
changes = true;
|
||||
|
||||
} else if (key_index >= 0) {
|
||||
} else {
|
||||
index = key_index;
|
||||
}
|
||||
})
|
||||
|
@ -781,7 +781,6 @@ onVueSetup(function() {
|
||||
e2.clientY - e1.clientY,
|
||||
]
|
||||
if (!is_setup) {
|
||||
console.log(Math.pow(offset[0], 2) + Math.pow(offset[1], 2))
|
||||
if (Math.pow(offset[0], 2) + Math.pow(offset[1], 2) > 40) {
|
||||
setup();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user