瀏覽代碼

Fix `get_property_list` get wrong order of properties

alpacat 1 年之前
父節點
當前提交
2d493e85a9
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules/mono/csharp_script.cpp

+ 2 - 1
modules/mono/csharp_script.cpp

@@ -1515,9 +1515,10 @@ void CSharpInstance::get_property_list(List<PropertyInfo> *p_properties) const {
 		}
 	}
 
+	props.reverse();
 	for (PropertyInfo &prop : props) {
 		validate_property(prop);
-		p_properties->push_back(prop);
+		p_properties->push_front(prop);
 	}
 }