fixed incorrect activation of transition/states during preview mode absm
@@ -326,7 +326,8 @@ impl AbsmEditor {
{
let machine = absm.machine_mut().get_value_mut_silent();
- for layer in machine.layers_mut() {
+ if let Some(layer_index) = selection.layer {
+ if let Some(layer) = machine.layers_mut().get_mut(layer_index) {
while let Some(event) = layer.pop_event() {
match event {
Event::ActiveStateChanged { new: state, .. } => {
@@ -343,6 +344,7 @@ impl AbsmEditor {
}
}
}
+ }
pub fn handle_ui_message(
&mut self,
