mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-29 12:37:08 -06:00
#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:
co-authored by
Claude Sonnet 5.5
parent
470ea7a3af
commit
42c7a7141e
@@ -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![] }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user