Skip to content

Commit 14bb044

Browse files
committed
fix mutability
1 parent 2311322 commit 14bb044

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/bevy_api_gen/templates/footer.tera

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ impl ::bevy::app::Plugin for {{ "ScriptingPlugin" | prefix_cratename | convert_c
1616
{%- for function in item.functions -%}
1717
.overwrite_script_function("{{ function.ident }}", |
1818
{%- for arg in function.args -%}
19+
{%- if arg.proxy_ty is matching("Mut.*")-%}
20+
mut {% endif -%}
1921
{%- if arg.ident != "self" -%}
2022
{{- arg.ident -}}
2123
{%- else -%}

0 commit comments

Comments
 (0)