mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-11 21:38:56 -05:00
fix ExportFirstPerson
This commit is contained in:
@@ -239,12 +239,15 @@ namespace UniVRM10
|
||||
|
||||
void ExportFirstPerson(UniGLTF.Extensions.VRMC_vrm.VRMC_vrm vrm, VRM10Controller vrmController, Model model, RuntimeVrmConverter converter)
|
||||
{
|
||||
if (vrmController?.FirstPerson != null)
|
||||
if (vrmController?.FirstPerson == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
vrm.FirstPerson = new UniGLTF.Extensions.VRMC_vrm.FirstPerson();
|
||||
vrm.FirstPerson = new UniGLTF.Extensions.VRMC_vrm.FirstPerson
|
||||
{
|
||||
MeshAnnotations = new List<UniGLTF.Extensions.VRMC_vrm.MeshAnnotation>(),
|
||||
};
|
||||
Func<Renderer, int> getIndex = r =>
|
||||
{
|
||||
var node = converter.Nodes[r.gameObject];
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using UniGLTF;
|
||||
// using UniGLTF.ShaderPropExporter;
|
||||
using UnityEngine;
|
||||
using VRMShaders;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user