prevent panic when leaving preview mode in the absm editor
@@ -345,6 +345,7 @@ impl AbsmEditor {
}
}
ToolbarAction::LeavePreviewMode => {
+ if self.preview_mode_data.is_some() {
absm_node.set_enabled(false);
// Disable all animations in the player.
@@ -363,6 +364,7 @@ impl AbsmEditor {
}
}
}
+ }
if let Some(msg) = message.data::<AbsmNodeMessage>() {
if let Some(absm_node) = scene
