Skip to content

Commit de313c2

Browse files
committed
added missing ImportContext.SceneImporter assignment
1 parent f7146c2 commit de313c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Runtime/Scripts/GLTFSceneImporter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ public GLTFSceneImporter(string gltfFileName, ImportOptions options) : this(opti
297297
public GLTFSceneImporter(GLTFRoot rootNode, Stream gltfStream, ImportOptions options) : this(options)
298298
{
299299
_gltfRoot = rootNode;
300+
if (options.ImportContext != null)
301+
options.ImportContext.SceneImporter = this;
300302

301303
if (gltfStream != null)
302304
{
@@ -320,6 +322,9 @@ public GLTFSceneImporter(GLTFRoot rootNode, Stream gltfStream, ImportOptions opt
320322
/// </example>
321323
public GLTFSceneImporter(Stream gltfStream, ImportOptions options) : this(options)
322324
{
325+
if (options.ImportContext != null)
326+
options.ImportContext.SceneImporter = this;
327+
323328
if (gltfStream != null)
324329
{
325330
_gltfStream = new GLBStream { Stream = gltfStream, StartPosition = gltfStream.Position };

0 commit comments

Comments
 (0)