Filter bundled foliage prototypes and update UI styling

This commit is contained in:
2026-05-02 04:03:16 +02:00
parent d4cb89839d
commit d8d7877411
2 changed files with 22 additions and 6 deletions

View File

@@ -2598,12 +2598,16 @@ export function App({ store, draftStorage = null, initialStatusMessage }: AppPro
);
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)
),
Object.values(editorState.document.foliagePrototypes)
.filter(
(prototype) => !BUNDLED_FOLIAGE_PROTOTYPE_IDS.has(prototype.id)
)
.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);