From 2d493e85a93ada822e4b61f5f001775c67e076fd Mon Sep 17 00:00:00 2001 From: alpacat Date: Sun, 30 Jun 2024 19:48:35 +0800 Subject: [PATCH] Fix `get_property_list` get wrong order of properties --- modules/mono/csharp_script.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 36c8a40ed9a..a917180da32 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -1515,9 +1515,10 @@ void CSharpInstance::get_property_list(List *p_properties) const { } } + props.reverse(); for (PropertyInfo &prop : props) { validate_property(prop); - p_properties->push_back(prop); + p_properties->push_front(prop); } }