@@ -1002,17 +1002,12 @@ Asset* Content::load(const Guid& id, const ScriptingTypeHandle& type, AssetInfo&
|
||||
}
|
||||
|
||||
#if ASSETS_LOADING_EXTRA_VERIFICATION
|
||||
|
||||
// Ensure we have valid asset info
|
||||
ASSERT(assetInfo.TypeName.HasChars() && assetInfo.Path.HasChars());
|
||||
|
||||
// Check if file exists
|
||||
if (!FileSystem::FileExists(assetInfo.Path))
|
||||
{
|
||||
LOG(Error, "Cannot find file '{0}'", assetInfo.Path);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// Find asset factory based in its type
|
||||
|
||||
@@ -35,6 +35,11 @@ namespace FlaxEngine
|
||||
return null;
|
||||
|
||||
var dataTypeName = DataTypeName;
|
||||
if (string.IsNullOrEmpty(dataTypeName))
|
||||
{
|
||||
Debug.LogError(string.Format("Missing typename of data in Json asset '{0}'.", Path), this);
|
||||
return null;
|
||||
}
|
||||
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
|
||||
for (int i = 0; i < assemblies.Length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user