From 134c2570817e2d352d9880c23892c83d7b4f5917 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 16 Aug 2024 07:23:28 -0500 Subject: [PATCH] Keep property declared order if similar meta data token. --- Source/Editor/CustomEditors/Editors/GenericEditor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Editor/CustomEditors/Editors/GenericEditor.cs b/Source/Editor/CustomEditors/Editors/GenericEditor.cs index f624600b4..1eb1c5f90 100644 --- a/Source/Editor/CustomEditors/Editors/GenericEditor.cs +++ b/Source/Editor/CustomEditors/Editors/GenericEditor.cs @@ -178,6 +178,8 @@ namespace FlaxEditor.CustomEditors.Editors return 1; if (Info.MetadataToken < other.Info.MetadataToken) return -1; + // Keep declaration order if same metadata token. + return 0; } // By name