Fix clicking on layers bug

This commit is contained in:
Skyler Lehmkuhl
2025-01-23 16:30:24 -05:00
parent 279cf538ab
commit e13c92f661
+2 -2
View File
@@ -3763,7 +3763,7 @@ class GraphicsObject extends Widget {
this.setFrameNum(this.currentFrameNum - 1);
}
getFrame(num) {
return this.activeLayer.getFrame(num);
return this.activeLayer?.getFrame(num);
}
setFrameNum(num) {
num = Math.max(0, num);
@@ -6543,7 +6543,7 @@ function timeline() {
updateUI();
updateMenu();
} else {
context.activeObject.currentLayer = i;
context.activeObject.currentLayer = i - context.activeObject.audioLayers.length;
}
}
}