mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-25 15:47:26 -05:00
CanExtract
This commit is contained in:
parent
1ea276e959
commit
8080bf7ab6
|
|
@ -30,7 +30,7 @@ namespace UniGLTF
|
|||
}
|
||||
else
|
||||
{
|
||||
if (GUILayout.Button("Clear extraction."))
|
||||
if (GUILayout.Button("Clear extraction"))
|
||||
{
|
||||
ClearExternalObjects(importer, typeof(AnimationClip));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,11 +66,15 @@ namespace UniGLTF
|
|||
/// <returns></returns>
|
||||
protected bool CanExtract(ScriptedImporter importer)
|
||||
{
|
||||
var subAssets = AssetDatabase.LoadAllAssetsAtPath(importer.assetPath);
|
||||
|
||||
foreach (var key in m_keys)
|
||||
foreach (var (k, v) in importer.GetExternalObjectMap())
|
||||
{
|
||||
|
||||
foreach (var key in m_keys)
|
||||
{
|
||||
if (k.type.IsAssignableFrom(key.Type))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ namespace UniGLTF
|
|||
}
|
||||
else
|
||||
{
|
||||
if (GUILayout.Button("Clear extraction."))
|
||||
if (GUILayout.Button("Clear extraction"))
|
||||
{
|
||||
ClearExternalObjects(importer, typeof(Texture), typeof(Material));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace UniVRM10
|
|||
}
|
||||
else
|
||||
{
|
||||
if (GUILayout.Button("Clear extraction."))
|
||||
if (GUILayout.Button("Clear extraction"))
|
||||
{
|
||||
ClearExternalObjects(importer, typeof(VRM10Object), typeof(VRM10Expression));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user