mirror of
https://github.com/4sval/FModel.git
synced 2026-04-23 01:57:48 -05:00
Fix soft crash on "blank" shop assets
This commit is contained in:
parent
f3c1103b0c
commit
995cd25bc4
|
|
@ -1 +1 @@
|
|||
Subproject commit dd9a2706022676a8bf529a31e6d311124e58942f
|
||||
Subproject commit f91288c261ecf9cd5a276683a9812fe920265eb7
|
||||
|
|
@ -47,7 +47,12 @@ public class BaseMaterialInstance : BaseIcon
|
|||
}
|
||||
|
||||
if (Preview == null)
|
||||
{
|
||||
if (material.TryGetValue(out FPackageIndex parent, "Parent"))
|
||||
Utils.TryGetPackageIndexExport(parent, out material);
|
||||
|
||||
goto texture_finding;
|
||||
}
|
||||
|
||||
foreach (var vectorParameter in material.VectorParameterValues)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -634,9 +634,9 @@ Snooper aims to give an accurate preview of models, materials, skeletal animatio
|
|||
ImGui.TreePop();
|
||||
}
|
||||
ImGui.SetNextItemOpen(true, ImGuiCond.Appearing);
|
||||
if (ImGui.TreeNode("Switchs"))
|
||||
if (ImGui.TreeNode("Switches"))
|
||||
{
|
||||
material.ImGuiDictionaries("switchs", material.Parameters.Switchs, true);
|
||||
material.ImGuiDictionaries("switches", material.Parameters.Switches, true);
|
||||
ImGui.TreePop();
|
||||
}
|
||||
ImGui.SetNextItemOpen(true, ImGuiCond.Appearing);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user