From fec11884b1865264a4d32bf2152e9d9448ea456e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 2 May 2026 04:01:48 +0200 Subject: [PATCH] Add sorted list of foliage prototypes --- src/app/App.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 917141b2..fd0b7f62 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -2540,6 +2540,16 @@ export function App({ store, draftStorage = null, initialStatusMessage }: AppPro () => getFoliageLayerList(editorState.document.foliageLayers), [editorState.document.foliageLayers] ); + const customFoliagePrototypeList = useMemo( + () => + Object.values(editorState.document.foliagePrototypes).sort( + (left, right) => + left.category.localeCompare(right.category) || + left.label.localeCompare(right.label) || + left.id.localeCompare(right.id) + ), + [editorState.document.foliagePrototypes] + ); const pathList = getScenePaths(editorState.document.paths); const layoutMode = editorState.viewportLayoutMode; const activePanelId = editorState.activeViewportPanelId;