From 43eac9f33283cd7a9fefa39fa20716a2824eb9f6 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 23 Aug 2024 16:28:09 -0700 Subject: [PATCH] add entity labels to macro map --- src/df/core/df_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/df/core/df_core.c b/src/df/core/df_core.c index 3d601751..acf2b358 100644 --- a/src/df/core/df_core.c +++ b/src/df/core/df_core.c @@ -8671,6 +8671,10 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt) expr->mode = E_Mode_Offset; expr->type_key = entity_type; e_string2expr_map_insert(arena, ctx->macro_map, push_str8f(arena, "$%I64u", entity->id), expr); + if(entity->name.size != 0) + { + e_string2expr_map_insert(arena, ctx->macro_map, entity->name, expr); + } } } scratch_end(scratch);