set ids <facepalm>
This commit is contained in:
parent
d31b4eab53
commit
4bd827ce5c
1 changed files with 2 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ macro Ctx.get_elem(&ctx, Id id)
|
|||
elem = ctx.cache.get_or_insert(&empty_elem, id, &is_new)!;
|
||||
elem.flags = (ElemFlags)0;
|
||||
elem.flags.is_new = is_new;
|
||||
// FIXME: should this be here? or is it better to have the elements set the id?
|
||||
elem.id = id;
|
||||
return elem;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue