@@ -16,7 +16,8 @@ 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 _, TableContext , ViewClass , ViewClassRegistry ,
20
+ ViewClassRegistryError ,
20
21
} ;
21
22
22
23
use crate :: {
@@ -1253,6 +1254,7 @@ impl App {
1253
1254
app_blueprint : & AppBlueprint < ' _ > ,
1254
1255
gpu_resource_stats : & WgpuResourcePoolStatistics ,
1255
1256
store_context : Option < & StoreContext < ' _ > > ,
1257
+ table_context : Option < & TableContext < ' _ > > ,
1256
1258
store_stats : Option < & StoreHubStats > ,
1257
1259
) {
1258
1260
let mut main_panel_frame = egui:: Frame :: default ( ) ;
@@ -1291,7 +1293,7 @@ impl App {
1291
1293
. callback_resources
1292
1294
. get_mut :: < re_renderer:: RenderContext > ( )
1293
1295
{
1294
- if let Some ( store_context) = store_context {
1296
+ if let ( Some ( store_context) , Some ( tables ) ) = ( store_context, table_context ) {
1295
1297
#[ cfg( target_arch = "wasm32" ) ]
1296
1298
let is_history_enabled = self . startup_options . enable_history ;
1297
1299
#[ cfg( not( target_arch = "wasm32" ) ) ]
@@ -1307,6 +1309,7 @@ impl App {
1307
1309
ui,
1308
1310
render_ctx,
1309
1311
store_context,
1312
+ tables,
1310
1313
& self . reflection ,
1311
1314
& self . component_ui_registry ,
1312
1315
& self . view_class_registry ,
@@ -2083,12 +2086,12 @@ impl eframe::App for App {
2083
2086
BlueprintUndoState :: default_query ( ) ,
2084
2087
|store_context| {
2085
2088
self . state
2086
- . blueprint_query_for_viewer ( store_context. blueprint )
2089
+ . blueprint_query_for_viewer ( store_context. 0 . blueprint )
2087
2090
} ,
2088
2091
) ;
2089
2092
2090
2093
let app_blueprint = AppBlueprint :: new (
2091
- store_context. as_ref ( ) ,
2094
+ store_context. as_ref ( ) . map ( |x| & x . 0 ) ,
2092
2095
& blueprint_query,
2093
2096
egui_ctx,
2094
2097
self . panel_state_overrides_active
@@ -2100,7 +2103,8 @@ impl eframe::App for App {
2100
2103
frame,
2101
2104
& app_blueprint,
2102
2105
& gpu_resource_stats,
2103
- store_context. as_ref ( ) ,
2106
+ store_context. as_ref ( ) . map ( |x| & x. 0 ) ,
2107
+ store_context. as_ref ( ) . map ( |x| & x. 1 ) ,
2104
2108
store_stats. as_ref ( ) ,
2105
2109
) ;
2106
2110
@@ -2113,10 +2117,18 @@ impl eframe::App for App {
2113
2117
self . command_sender . send_ui ( cmd) ;
2114
2118
}
2115
2119
2116
- Self :: handle_dropping_files ( egui_ctx, store_context. as_ref ( ) , & self . command_sender ) ;
2120
+ Self :: handle_dropping_files (
2121
+ egui_ctx,
2122
+ store_context. as_ref ( ) . map ( |x| & x. 0 ) ,
2123
+ & self . command_sender ,
2124
+ ) ;
2117
2125
2118
2126
// 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 ( ) ) ;
2127
+ self . run_pending_ui_commands (
2128
+ egui_ctx,
2129
+ & app_blueprint,
2130
+ store_context. as_ref ( ) . map ( |x| & x. 0 ) ,
2131
+ ) ;
2120
2132
}
2121
2133
self . run_pending_system_commands ( & mut store_hub, egui_ctx) ;
2122
2134
0 commit comments