From 013703b5bad071b1a7fb0c351f21d4c66a68e4e3 Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Mon, 31 Aug 2026 16:49:46 +0300 Subject: [PATCH] Keep show history independently editable --- src/scene/model/solid_history.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/scene/model/solid_history.rs b/src/scene/model/solid_history.rs index 4a8321a7e..c2c3812e6 100644 --- a/src/scene/model/solid_history.rs +++ b/src/scene/model/solid_history.rs @@ -75,13 +75,9 @@ fn history_flags( } fn displayed_history_state( - record_history: bool, object_show_history: bool, show_history_mode: i16, ) -> (bool, bool) { - if !record_history { - return (false, false); - } match show_history_mode { 0 => (false, false), 2 => (true, false), @@ -145,7 +141,7 @@ fn cone_properties( let (record_history, object_show_history, show_history_mode) = history_flags(document, handle).unwrap_or((false, false, 1)); let (show_history, show_history_editable) = - displayed_history_state(record_history, object_show_history, show_history_mode); + displayed_history_state(object_show_history, show_history_mode); let show_value = if show_history { "Yes" } else { "No" }; let mut geometry = vec![ Property { @@ -271,7 +267,7 @@ fn box_properties( let (record_history, object_show_history, show_history_mode) = history_flags(document, handle).unwrap_or((false, false, 1)); let (show_history, show_history_editable) = - displayed_history_state(record_history, object_show_history, show_history_mode); + displayed_history_state(object_show_history, show_history_mode); let show_value = if show_history { "Yes" } else { "No" }; vec![ PropSection { @@ -451,11 +447,8 @@ pub fn apply_history_choice( } else { return false; }; - if !history.record_history { - history.show_history = false; - } } - PROP_SHOW_HISTORY if history.record_history && show_history_mode == 1 => { + PROP_SHOW_HISTORY if show_history_mode == 1 => { history.show_history = if value.eq_ignore_ascii_case("Yes") { true } else if value.eq_ignore_ascii_case("No") {