Fix #958: add vector conversion to layer context menus

This commit is contained in:
Kristian Myram
2026-10-12 08:17:50 +02:00
parent 67434e9038
commit e0a23e8763
2 changed files with 21 additions and 6 deletions
+5 -1
View File
@@ -1131,7 +1131,11 @@ pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, rect: Rect) {
if context_layers.is_empty() {
ui.label(crate::i18n::tr("No unlocked layer selected"));
} else {
super::timeline::layer_menu(ui, &context_layers, &mut context_actions);
let vector = context_layers
.iter()
.filter_map(|id| comp.layer(effectcraft_engine::project::LayerId(*id)))
.any(|layer| super::timeline::vector_footage_layer(&app.session.project, layer));
super::timeline::layer_menu(ui, &context_layers, vector, &mut context_actions);
}
});
for (id, params) in context_actions {