Group resize should only affect AVSplit siblings

parent 3544d838
Pipeline #1613 passed with stage
in 14 minutes and 13 seconds
......@@ -1532,7 +1532,13 @@ int TimelineModel::requestItemResize(int itemId, int size, bool right, bool logU
std::unordered_set<int> all_items;
if (!allowSingleResize && m_groups->isInGroup(itemId)) {
int groupId = m_groups->getRootId(itemId);
auto items = m_groups->getLeaves(groupId);
std::unordered_set<int> items;
if (m_groups->getType(groupId) == GroupType::AVSplit) {
// Only resize group elements if it is an avsplit
items = m_groups->getLeaves(groupId);
} else {
all_items.insert(itemId);
}
for (int id : items) {
if (id == itemId) {
all_items.insert(id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment