#1061: Enter renames the selected effect, text animator, mask or shape group

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76
2026-10-12 19:40:37 +02:00
co-authored by Claude Sonnet 5.5
parent 470ea7a3af
commit 42c7a7141e
6 changed files with 209 additions and 3 deletions
+6
View File
@@ -337,6 +337,12 @@ pub fn parse_path(s: &str) -> Vec<Seg> {
}
impl PropGroup {
/// An instance in an indexed list (effect, mask, shape item, text animator, tracker): these
/// can be renamed, removed, duplicated and reordered; fixed groups (Transform…) can't.
pub fn is_instance(&self) -> bool {
matches!(self.kind, GroupKind::Indexed | GroupKind::Effect { .. } | GroupKind::Mask { .. } | GroupKind::Tracker { .. })
}
pub fn new(uid: Uid, match_id: &str, name: &str) -> PropGroup {
PropGroup { uid, match_id: match_id.into(), name: name.into(), kind: GroupKind::Plain, enabled: true, children: vec![] }
}