#878: context menus act on the whole selection
Problem: with several layers selected, right-clicking one of them in the Timeline (name row or layer bar) and choosing Pre-compose, Delete, Duplicate, ... re-selected and acted on only the right-clicked layer. Right-clicking an unselected layer did not select it. In the Project panel, Move to Project Root moved only the right-clicked item. Fix: as in After Effects, a right-click on a selected layer keeps the selection and the menu's commands target every selected layer (in comp order); a right-click on an unselected layer selects only it. Move to Project Root uses the same selection targets as Delete and Label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
67434e9038
commit
1b7f08198f
@@ -592,7 +592,7 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
|
||||
ui.close();
|
||||
}
|
||||
if it.parent.is_some() && ui.button(crate::i18n::tr("Move to Project Root")).clicked() {
|
||||
actions.push(("project.move".into(), json!({"items": [id.0], "folder": null})));
|
||||
actions.push(("project.move".into(), json!({"items": targets(app, *id, selected), "folder": null})));
|
||||
ui.close();
|
||||
}
|
||||
if !it.is_folder() && ui.button(crate::i18n::tr("Add to Composition")).clicked() {
|
||||
|
||||
Reference in New Issue
Block a user