File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -821,7 +821,8 @@ impl App {
821
821
822
822
let db = store_hub. entity_db_mut ( & store_id) ;
823
823
824
- if store_id. is_blueprint ( ) {
824
+ // No need to clear undo buffer if we're just appending static data.
825
+ if store_id. is_blueprint ( ) && chunks. iter ( ) . any ( |c| !c. is_static ( ) ) {
825
826
self . state
826
827
. blueprint_undo_state
827
828
. entry ( store_id)
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ pub trait BlueprintContext {
80
80
self . save_serialized_blueprint_component ( entity_path, serialized) ;
81
81
}
82
82
83
- fn save_blueprint_component_static (
83
+ fn save_static_blueprint_component (
84
84
& self ,
85
85
entity_path : EntityPath ,
86
86
component_descr : & ComponentDescriptor ,
@@ -91,10 +91,10 @@ pub trait BlueprintContext {
91
91
return ;
92
92
} ;
93
93
94
- self . save_serialized_blueprint_component_static ( entity_path, serialized) ;
94
+ self . save_serialized_static_blueprint_component ( entity_path, serialized) ;
95
95
}
96
96
97
- fn save_serialized_blueprint_component_static (
97
+ fn save_serialized_static_blueprint_component (
98
98
& self ,
99
99
entity_path : EntityPath ,
100
100
component_batch : SerializedComponentBatch ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ impl<T: BlueprintContext> TimeBlueprintExt for T {
52
52
53
53
fn set_time ( & self , time : impl Into < TimeInt > ) {
54
54
let time: TimeInt = time. into ( ) ;
55
- self . save_blueprint_component_static (
55
+ self . save_static_blueprint_component (
56
56
time_panel_blueprint_entity_path ( ) ,
57
57
& TimePanelBlueprint :: descriptor_time ( ) ,
58
58
& re_types:: blueprint:: components:: TimeCell ( time. as_i64 ( ) . into ( ) ) ,
You can’t perform that action at this time.
0 commit comments