Skip to content

Commit dd28daa

Browse files
committed
Fix Connected Asset
1 parent 0d9c2e6 commit dd28daa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Common_glTF_Exporter/Materials/AssetProperties.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ public static Asset GetDiffuseBitmap(Asset theAsset, string baseSchema)
3030
return null;
3131

3232
var prop = theAsset.FindByName(diffusePropertyName);
33-
if (prop?.NumberOfConnectedProperties > 0)
33+
34+
if (prop == null)
35+
return null;
36+
37+
if (prop.NumberOfConnectedProperties == 1)
3438
{
3539
return prop.GetSingleConnectedAsset();
3640
}

0 commit comments

Comments
 (0)