overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
127 stars 47 forks source link

NullReferenceException: Object reference not set to an instance of an object #989

Closed An12854 closed 3 weeks ago

An12854 commented 3 weeks ago

Unity Version: 2019.4.31f1

OS: Windows 10 Home 22H2

Issue: When trying to export a model it throws this error:

NullReferenceException: Object reference not set to an instance of an object AvatarExporter.StoreMaterialData (UnityEngine.Material[] materials) (at Assets/Editor/AvatarExporter/AvatarExporter.cs:1235) AvatarExporter.TraverseUserBoneTree (UnityEngine.Transform modelBone, Overte.BoneTreeNode boneTreeNode) (at Assets/Editor/AvatarExporter/AvatarExporter.cs:757) AvatarExporter.TraverseUserBoneTree (UnityEngine.Transform modelBone, Overte.BoneTreeNode boneTreeNode) (at Assets/Editor/AvatarExporter/AvatarExporter.cs:814) AvatarExporter.SetBoneAndMaterialInformation () (at Assets/Editor/AvatarExporter/AvatarExporter.cs:715)

How to reproduce: Open a Unity Project, install the assets and the asset exporter, go to Overte>Export New Avatar

An12854 commented 3 weeks ago

I forgot to set the correct material, I'm an idiot