Add seperate export filer for FMDL to remove unused types atm
This commit is contained in:
parent
937102c154
commit
dada4bb9c3
Binary file not shown.
Binary file not shown.
@ -437,7 +437,8 @@ namespace Bfres.Structs
|
||||
Nodes.Clear();
|
||||
}
|
||||
|
||||
public override string ExportFilter => FileFilters.GetFilter(typeof(FMDL));
|
||||
public override string ExportFilter => FileFilters.GetFilter(typeof(FMDL), null, true);
|
||||
public override string ImportFilter => FileFilters.GetFilter(typeof(FMDL));
|
||||
|
||||
public override void Export(string FileName)
|
||||
{
|
||||
|
@ -87,7 +87,7 @@
|
||||
// stPropertyGrid1
|
||||
//
|
||||
this.stPropertyGrid1.AutoScroll = true;
|
||||
this.stPropertyGrid1.DisableHintDisplay = true;
|
||||
this.stPropertyGrid1.ShowHintDisplay = true;
|
||||
this.stPropertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.stPropertyGrid1.Location = new System.Drawing.Point(0, 0);
|
||||
this.stPropertyGrid1.Name = "stPropertyGrid1";
|
||||
|
@ -13,6 +13,7 @@ namespace FirstPlugin
|
||||
public static string BNTX_TEX = GetFilter(".bftex", ".dds",".astc", ".png", ".tga", ".jpg", ".tiff", ".gif");
|
||||
public static string FTEX = GetFilter(".bftex", ".dds", ".dds2", ".png", ".tga", ".jpg", ".tiff", ".gif");
|
||||
public static string FMDL = GetFilter(".bfmdl", ".dae", ".fbx", ".obj", ".csv");
|
||||
public static string FMDL_EXPORT = GetFilter(".bfmdl", ".dae");
|
||||
public static string FSKL = GetFilter(".bfskl");
|
||||
public static string FSHP = GetFilter(".bfobj");
|
||||
public static string BONE = GetFilter(".bfbn");
|
||||
@ -30,9 +31,10 @@ namespace FirstPlugin
|
||||
public static string FSCN = GetFilter(".bfscn");
|
||||
public static string FSHA = GetFilter(".bfspa");
|
||||
|
||||
public static string GetFilter(Type type, object CheckAnimEffect = null)
|
||||
public static string GetFilter(Type type, object CheckAnimEffect = null, bool IsExporting = false)
|
||||
{
|
||||
if (type == typeof(TextureData)) return BNTX_TEX;
|
||||
else if (type == typeof(FMDL) && IsExporting) return FMDL_EXPORT;
|
||||
else if (type == typeof(FMDL)) return FMDL;
|
||||
else if (type == typeof(FSHP)) return FSHP;
|
||||
else if (type == typeof(FMAT)) return FMAT;
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user