Skip to content

Crashes with zero or 1 character material names #36

@wilg

Description

@wilg

I for whatever reason have a material named _ in the export. (??? Looking into it.) But probably shouldn't crash.

IndexOutOfRangeException: Index was outside the bounds of the array.
Reallusion.Import.CharacterInfo.GetMatJson (UnityEngine.GameObject obj, System.String sourceName) (at ./Library/PackageCache/com.soupday.cc3_unity_tools@3b8461c691da/Editor/CharacterInfo.cs:678)
Reallusion.Import.Importer.ProcessObjectDetectPass (UnityEngine.Renderer renderer) (at ./Library/PackageCache/com.soupday.cc3_unity_tools@3b8461c691da/Editor/Importer.cs:574)
Reallusion.Import.Importer.ProcessObjectTreePrepass (UnityEngine.GameObject obj) (at ./Library/PackageCache/com.soupday.cc3_unity_tools@3b8461c691da/Editor/Importer.cs:550)
Reallusion.Import.Importer.Import (System.Boolean batchMode) (at ./Library/PackageCache/com.soupday.cc3_unity_tools@3b8461c691da/Editor/Importer.cs:350)
Reallusion.Import.ImporterWindow.ImportCharacter (Reallusion.Import.CharacterInfo info) (at ./Library/PackageCache/com.soupday.cc3_unity_tools@3b8461c691da/Editor/ImporterWindow.cs:1595)
Reallusion.Import.ImporterWindow.BuildCharacter () (at ./Library/PackageCache/com.soupday.cc3_unity_tools@3b8461c691da/Editor/ImporterWindow.cs:1676)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:407)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions