Skip to content

Commit 5c72198

Browse files
committed
Update flecs
1 parent a6df19b commit 5c72198

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

deps/flecs.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95930,7 +95930,16 @@ int flecs_expr_binary_visit_type(
9593095930
goto error;
9593195931
}
9593295932

95933-
if (flecs_expr_visit_type_priv(script, node->right, cur, desc)) {
95933+
ecs_meta_cursor_t right_cur = *cur;
95934+
if (node->right->kind == EcsExprIdentifier) {
95935+
if (ecs_get(script->world, node->left->type, EcsEnum) != NULL) {
95936+
/* If the left hand side is an enum, interpret untyped identifiers
95937+
* on the right hand side as enum constants of the same type. */
95938+
right_cur = ecs_meta_cursor(script->world, node->left->type, NULL);
95939+
}
95940+
}
95941+
95942+
if (flecs_expr_visit_type_priv(script, node->right, &right_cur, desc)) {
9593495943
goto error;
9593595944
}
9593695945

etc/flecs_explorer.wasm

805 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)