correctly register types for cfg/ctrl-entity queries

This commit is contained in:
Ryan Fleury
2025-04-18 13:58:38 -07:00
parent ff35db0e16
commit d053edab3f
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -12217,6 +12217,7 @@ rd_frame(void)
expr->type_key = collection_type_key;
expr->space = e_space_make(RD_EvalSpaceKind_MetaQuery);
e_string2expr_map_insert(scratch.arena, ctx->macro_map, collection_name, expr);
e_string2typekey_map_insert(rd_frame_arena(), rd_state->meta_name2type_map, collection_name, collection_type_key);
}
//- rjf: add macros for all ctrl entity collections
@@ -12236,6 +12237,7 @@ rd_frame(void)
expr->type_key = collection_type_key;
expr->space = e_space_make(RD_EvalSpaceKind_MetaQuery);
e_string2expr_map_insert(scratch.arena, ctx->macro_map, collection_name, expr);
e_string2typekey_map_insert(rd_frame_arena(), rd_state->meta_name2type_map, collection_name, collection_type_key);
}
//- rjf: add macro / lookup rules for unattached processes
+1 -1
View File
@@ -1258,7 +1258,7 @@ rd_watch_row_info_from_row(Arena *arena, EV_Row *row)
// rjf: singular row for queries
else if(row->eval.space.kind == RD_EvalSpaceKind_MetaQuery)
{
rd_watch_cell_list_push_new(arena, &info.cells, RD_WatchCellFlag_Indented|RD_WatchCellKind_Expr, .pct = 1.f);
rd_watch_cell_list_push_new(arena, &info.cells, RD_WatchCellKind_Expr, .flags = RD_WatchCellFlag_Indented, .pct = 1.f);
}
// rjf: singular button for commands