mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 12:58:27 +00:00
more safeguards
This commit is contained in:
parent
1d7d394366
commit
ab0c925b33
1 changed files with 9 additions and 0 deletions
|
@ -440,6 +440,12 @@ namespace SanAndreasUnity.Editor
|
|||
|
||||
private void RegisterSaveAssetAction(UnityEngine.Object asset, string path, Action<UnityEngine.Object> assignAsset)
|
||||
{
|
||||
if (asset == null && !path.IsNullOrWhiteSpace())
|
||||
{
|
||||
UnityEngine.Debug.LogError($"RegisterSaveAssetAction(): asset is null, path: {path}");
|
||||
return;
|
||||
}
|
||||
|
||||
m_saveAssetActions.Add(new SaveAssetAction
|
||||
{
|
||||
asset = asset,
|
||||
|
@ -548,6 +554,9 @@ namespace SanAndreasUnity.Editor
|
|||
|
||||
for (int i = 0; i < mats.Length; i++)
|
||||
{
|
||||
if (null == mats[i])
|
||||
continue;
|
||||
|
||||
if (m_exportTextures)
|
||||
{
|
||||
int tempTexIndex = i;
|
||||
|
|
Loading…
Add table
Reference in a new issue