Merge pull request #1075 from vangel76/fix-1061-rename

This commit is contained in:
Brandon Thomas
2026-10-13 04:29:04 -04:00
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![] }
}