@@ -16,7 +16,7 @@ use re_viewer_context::{
16
16
store_hub:: { BlueprintPersistence , StoreHub , StoreHubStats } ,
17
17
AppOptions , AsyncRuntimeHandle , BlueprintUndoState , CommandReceiver , CommandSender ,
18
18
ComponentUiRegistry , DisplayMode , PlayState , StoreContext , SystemCommand ,
19
- SystemCommandSender as _, ViewClass , ViewClassRegistry , ViewClassRegistryError ,
19
+ SystemCommandSender as _, TableStores , ViewClass , ViewClassRegistry , ViewClassRegistryError ,
20
20
} ;
21
21
22
22
use crate :: {
@@ -1253,6 +1253,7 @@ impl App {
1253
1253
app_blueprint : & AppBlueprint < ' _ > ,
1254
1254
gpu_resource_stats : & WgpuResourcePoolStatistics ,
1255
1255
store_context : Option < & StoreContext < ' _ > > ,
1256
+ tables : Option < & TableStores > ,
1256
1257
store_stats : Option < & StoreHubStats > ,
1257
1258
) {
1258
1259
let mut main_panel_frame = egui:: Frame :: default ( ) ;
@@ -1291,7 +1292,7 @@ impl App {
1291
1292
. callback_resources
1292
1293
. get_mut :: < re_renderer:: RenderContext > ( )
1293
1294
{
1294
- if let Some ( store_context) = store_context {
1295
+ if let ( Some ( store_context) , Some ( tables ) ) = ( store_context, tables ) {
1295
1296
#[ cfg( target_arch = "wasm32" ) ]
1296
1297
let is_history_enabled = self . startup_options . enable_history ;
1297
1298
#[ cfg( not( target_arch = "wasm32" ) ) ]
@@ -1307,6 +1308,7 @@ impl App {
1307
1308
ui,
1308
1309
render_ctx,
1309
1310
store_context,
1311
+ tables,
1310
1312
& self . reflection ,
1311
1313
& self . component_ui_registry ,
1312
1314
& self . view_class_registry ,
@@ -2083,12 +2085,12 @@ impl eframe::App for App {
2083
2085
BlueprintUndoState :: default_query ( ) ,
2084
2086
|store_context| {
2085
2087
self . state
2086
- . blueprint_query_for_viewer ( store_context. blueprint )
2088
+ . blueprint_query_for_viewer ( store_context. 0 . blueprint )
2087
2089
} ,
2088
2090
) ;
2089
2091
2090
2092
let app_blueprint = AppBlueprint :: new (
2091
- store_context. as_ref ( ) ,
2093
+ store_context. as_ref ( ) . map ( |x| & x . 0 ) ,
2092
2094
& blueprint_query,
2093
2095
egui_ctx,
2094
2096
self . panel_state_overrides_active
@@ -2100,7 +2102,8 @@ impl eframe::App for App {
2100
2102
frame,
2101
2103
& app_blueprint,
2102
2104
& gpu_resource_stats,
2103
- store_context. as_ref ( ) ,
2105
+ store_context. as_ref ( ) . map ( |x| & x. 0 ) ,
2106
+ store_context. as_ref ( ) . map ( |x| x. 1 ) ,
2104
2107
store_stats. as_ref ( ) ,
2105
2108
) ;
2106
2109
@@ -2113,10 +2116,18 @@ impl eframe::App for App {
2113
2116
self . command_sender . send_ui ( cmd) ;
2114
2117
}
2115
2118
2116
- Self :: handle_dropping_files ( egui_ctx, store_context. as_ref ( ) , & self . command_sender ) ;
2119
+ Self :: handle_dropping_files (
2120
+ egui_ctx,
2121
+ store_context. as_ref ( ) . map ( |x| & x. 0 ) ,
2122
+ & self . command_sender ,
2123
+ ) ;
2117
2124
2118
2125
// Run pending commands last (so we don't have to wait for a repaint before they are run):
2119
- self . run_pending_ui_commands ( egui_ctx, & app_blueprint, store_context. as_ref ( ) ) ;
2126
+ self . run_pending_ui_commands (
2127
+ egui_ctx,
2128
+ & app_blueprint,
2129
+ store_context. as_ref ( ) . map ( |x| & x. 0 ) ,
2130
+ ) ;
2120
2131
}
2121
2132
self . run_pending_system_commands ( & mut store_hub, egui_ctx) ;
2122
2133
0 commit comments