Exception thrown during upload if material is null
Closed this issue · 0 comments
SenkyDragon commented
NullReferenceException: Object reference not set to an instance of an object
lilToonSetting.GetMaterialParents (System.Collections.Generic.HashSet`1[T] parents, UnityEngine.Material material) (at ./Packages/jp.lilxyzw.liltoon/Editor/lilToonSetting.cs:897)
lilToonSetting.SetShaderSettingBeforeBuild (UnityEngine.Material[] materials, UnityEngine.AnimationClip[] clips) (at ./Packages/jp.lilxyzw.liltoon/Editor/lilToonSetting.cs:854)
UnityEngine.Debug:LogException(Exception)
lilToonSetting:SetShaderSettingBeforeBuild(Material[], AnimationClip[]) (at ./Packages/jp.lilxyzw.liltoon/Editor/lilToonSetting.cs:888)
System.Reflection.MethodBase:Invoke(Object, Object[])
lilToon.External.VRChatModule:SetShaderSettingBeforeBuild(Material[], AnimationClip[]) (at ./Packages/jp.lilxyzw.liltoon/External/Editor/VRChatModule.cs:135)
lilToon.External.VRChatModule:OnPreprocessAvatar(GameObject) (at ./Packages/jp.lilxyzw.liltoon/External/Editor/VRChatModule.cs:54)
VRC.SDKBase.Editor.BuildPipeline.VRCBuildPipelineCallbacks:OnPreprocessAvatar(GameObject)