fix layer visibility toggle

This commit is contained in:
Skyler Lehmkuhl 2025-01-11 17:23:35 -05:00
parent 1b65cc08ea
commit f4c5b9b996
1 changed files with 1 additions and 0 deletions

View File

@ -2516,6 +2516,7 @@ class Layer extends Widget {
draw(ctx) { draw(ctx) {
// super.draw(ctx) // super.draw(ctx)
if (!this.visible) return;
let frameInfo = this.getFrameValue(this.frameNum); let frameInfo = this.getFrameValue(this.frameNum);
let frame = frameInfo.valueAtN !== undefined ? frameInfo.valueAtN : frameInfo.prev; let frame = frameInfo.valueAtN !== undefined ? frameInfo.valueAtN : frameInfo.prev;
const keyframe = frameInfo.valueAtN ? true : false const keyframe = frameInfo.valueAtN ? true : false