We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbc88d0 commit c0eadbbCopy full SHA for c0eadbb
1 file changed
src/ui/scenes.rs
@@ -53,7 +53,7 @@ pub fn render_scenes(model: &mut Model, ui: &mut Ui) {
53
label,
54
state,
55
is_editing: true,
56
- last_active: false,
+ last_active: true,
57
next_transition: 0.,
58
});
59
}
@@ -213,5 +213,15 @@ pub fn render_scenes(model: &mut Model, ui: &mut Ui) {
213
214
if let Some(scene) = add_scene {
215
model.project.scenes.push(scene);
216
+
217
+ let new_scene_index = model.project.scenes.len() - 1;
218
219
+ // Also, mark all other scenes as not-editing and not-active...
220
+ for (index, scene) in model.project.scenes.iter_mut().enumerate() {
221
+ if index != new_scene_index {
222
+ scene.last_active = false;
223
+ scene.is_editing = false;
224
+ }
225
226
227
0 commit comments