Add support for subdirectories #40

Merged
rnetiks merged 1 commit from master into master 2024-02-19 23:16:32 +00:00
rnetiks commented 2024-02-19 21:45:37 +00:00 (Migrated from github.com)

BetterSceneLoader could previously not load folders that were part of other subdirectories. This commit introduces a recursive way to get all folders for the dropdown selection.

I'll be honest, I noticed that problem by accident because I sort some of my files in some deeper folders, and wasn't able to select those folders.

BetterSceneLoader could previously not load folders that were part of other subdirectories. This commit introduces a recursive way to get all folders for the dropdown selection. I'll be honest, I noticed that problem by accident because I sort some of my files in some deeper folders, and wasn't able to select those folders.
Keelhauled commented 2024-02-19 22:21:14 +00:00 (Migrated from github.com)

Directory.GetDirectories already has an option to search recursively so there is no need to do that manually.

`Directory.GetDirectories` already has an option to search recursively so there is no need to do that manually.
rnetiks commented 2024-02-19 22:25:39 +00:00 (Migrated from github.com)

I'll do the appropriate edit then

I'll do the appropriate edit then
Keelhauled commented 2024-02-19 23:05:14 +00:00 (Migrated from github.com)

Also why change folders.Insert? That will change the default folder.

Also why change `folders.Insert`? That will change the default folder.
rnetiks commented 2024-02-19 23:07:21 +00:00 (Migrated from github.com)

That was an oversight on my part, just way too used to Add instead of insert, the result will be the same, just the order will be different.
If ya need me to switch it to Insert rather than Add, I can do so rq

That was an oversight on my part, just way too used to Add instead of insert, the result will be the same, just the order will be different. If ya need me to switch it to Insert rather than Add, I can do so rq
Keelhauled commented 2024-02-19 23:12:53 +00:00 (Migrated from github.com)

The order is important, the first one is used as the default folder.

The order is important, the first one is used as the default folder.
rnetiks commented 2024-02-19 23:13:04 +00:00 (Migrated from github.com)

With this, the default folder is once again first, while also adding the subdirs

With this, the default folder is once again first, while also adding the subdirs
Sign in to join this conversation.
No description provided.