Skip to content

Commit cb60b50

Browse files
authored
feat: Allow readonly of stream components even when toggled (#155)
1 parent 157e139 commit cb60b50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rt_entt_codegen/core/print_sys_exec.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ static auto add_stream_component_if_needed(
414414
continue;
415415
}
416416

417+
if(capability == ECSACT_SYS_CAP_READONLY) {
418+
continue;
419+
}
420+
417421
auto comp_ident = cpp_identifier(decl_full_name(comp_id));
418422
auto run_on_stream_str =
419423
std::format("::ecsact::entt::detail::run_on_stream<{}>", comp_ident);

0 commit comments

Comments
 (0)