Commit 5c2a6aa
authored
ModContentRegistry: Filter item descriptor by resource form (#246)
In the `IsDescriptorFilteredOut()` function, add additional checks to
filter out item descriptors depending on their resource form. Without
this change, the `IncludeNonSolid` flag does absolutely nothing. Also
filter out any non-subclasses of `UFGItemDescriptor`, which shouldn't
have been registered in the item registry to begin with.
Signed-off-by: Angel Pons <th3fanbus@gmail.com>1 parent 0b8e889 commit 5c2a6aa
File tree
2 files changed
+30
-1
lines changed- Mods/SML/Source/SML
- Private/Registry
- Public/Registry
2 files changed
+30
-1
lines changedLines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
863 | 883 | | |
864 | 884 | | |
865 | 885 | | |
866 | 886 | | |
867 | 887 | | |
868 | 888 | | |
869 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
870 | 896 | | |
871 | 897 | | |
872 | 898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| 144 | + | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| |||
0 commit comments