mirror of
https://github.com/4sval/FModel.git
synced 2026-08-25 10:54:35 -05:00
Fix soft crash on "blank" shop assets
This commit is contained in:
Submodule CUE4Parse updated: dd9a270602...f91288c261
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user