Timeline: reveal shortcuts leave unselected layers alone (#160)
U (and P, S, R, T, A, E, M, F, L) kept one reveal filter for the whole Timeline and replaced the set of open layers with the selected ones, so revealing on one layer closed every other layer and dropped their reveals. Each layer now has its own filter (TimelineState::layer_reveal; an open layer without one shows its whole tree). A shortcut applies to the selected layers (all layers with none selected) through apply_reveal and leaves the others as they are; `reveal` stays the last shortcut's filter for toggling and Shift-adding. U's results replace only the target layers' earlier picks, so U after UU shows the keyframed properties again. anim.reveal tells the Timeline which layers it looked at, so a layer with nothing keyframed closes. Twirling a layer by hand, Ctrl+` and Collapse All clear the filters they cover. Test: reveal_shortcuts_leave_unselected_layers_alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8c4b988a65
commit
6b8200ff78
@@ -338,7 +338,8 @@ fn reveal(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
out.extend(found.into_iter().map(|u| json!({"layer": lid.0, "prop": u})));
|
||||
}
|
||||
}
|
||||
frontend(s, "timeline.revealProps", &json!({"props": out, "kind": kind}))?;
|
||||
let layers: Vec<u64> = layers.iter().map(|l| l.0).collect();
|
||||
frontend(s, "timeline.revealProps", &json!({"props": out, "kind": kind, "layers": layers}))?;
|
||||
Ok(json!({"props": out}))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user