Skip to content

Commit

Permalink
fix ImportContext nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Jan 6, 2024
1 parent 05b1671 commit f949b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/Plugins/Core/ImportContext.cs
Expand Up @@ -12,7 +12,7 @@ public class GLTFImportContext
{
#if UNITY_EDITOR
public readonly AssetImportContext AssetContext;
public string FilePath => AssetContext.assetPath;
public string FilePath => AssetContext?.assetPath;
public readonly AssetImporter SourceImporter;
public float ImportScaleFactor = 1.0f;
#endif
Expand Down

0 comments on commit f949b45

Please sign in to comment.