Skip to content

Commit

Permalink
fix importer context root not being set
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Oct 23, 2023
1 parent 3b0ea35 commit 5d980b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/Plugins/ImportContext.cs
Expand Up @@ -19,7 +19,7 @@ public class GLTFImportContext
public readonly IReadOnlyList<GltfImportPluginContext> Plugins;

public GLTFSceneImporter SceneImporter;
public GLTFRoot Root;
public GLTFRoot Root => SceneImporter?.Root;

#if UNITY_EDITOR
internal GLTFImportContext(AssetImportContext assetImportContext, IReadOnlyList<GltfImportPluginContext> plugins)
Expand Down

0 comments on commit 5d980b1

Please sign in to comment.