mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-01 14:08:38 -06:00
Timeline: Shift-click on a group row adds it to the selection (#1751)
This commit is contained in:
@@ -2721,7 +2721,9 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
|
||||
let gr = ui.interact(gr_rect, egui::Id::unique(("grow", uid)), Sense::click());
|
||||
app.auto.add(&format!("timeline.group.{uid}.name"), gr_rect, name);
|
||||
if gr.clicked() && uid & (WAVE_BIT | GEOM_BIT) == 0 {
|
||||
actions.push(("prop.select".into(), json!({"layer": layer.id.0, "prop": uid, "selectKeys": false})));
|
||||
// Shift adds the group to the selection, as on a property row (#1751).
|
||||
let add = ui.input(|i| i.modifiers.shift);
|
||||
actions.push(("prop.select".into(), json!({"layer": layer.id.0, "prop": uid, "selectKeys": false, "add": add})));
|
||||
}
|
||||
if gr.double_clicked() {
|
||||
if fx.is_some() {
|
||||
|
||||
Reference in New Issue
Block a user