Skip to content

Commit 74eccda

Browse files
committed
fix(meta): transient field_info
* transients were missing in the fields_info in the meta C++ codegen
1 parent 4e9d547 commit 74eccda

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cpp_meta_header_codegen/cpp_meta_header_codegen.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,10 @@ void ecsact_codegen_plugin(
614614
write_fields_count_constexpr(ctx, comp_id);
615615
}
616616

617+
for(auto& comp_id : ecsact::meta::get_transient_ids(ctx.package_id)) {
618+
write_fields_count_constexpr(ctx, comp_id);
619+
}
620+
617621
for(auto& comp_id : ecsact::meta::get_action_ids(ctx.package_id)) {
618622
write_fields_count_constexpr(ctx, comp_id);
619623
}
@@ -622,6 +626,10 @@ void ecsact_codegen_plugin(
622626
write_fields_info_constexpr(ctx, comp_id);
623627
}
624628

629+
for(auto& comp_id : ecsact::meta::get_transient_ids(ctx.package_id)) {
630+
write_fields_info_constexpr(ctx, comp_id);
631+
}
632+
625633
for(auto& comp_id : ecsact::meta::get_action_ids(ctx.package_id)) {
626634
write_fields_info_constexpr(ctx, comp_id);
627635
}

0 commit comments

Comments
 (0)