Skip to content

Commit caa5d13

Browse files
committed
fixed resolve warning when exporting animation pointer with visibility
1 parent 161ab76 commit caa5d13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Runtime/Scripts/JsonPointer/KHR_animation_pointer_Resolver.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using GLTF.Schema;
23
using Unity.Profiling;
34
using UnityEngine;
45

@@ -45,7 +46,10 @@ public void Resolve(GLTFSceneExporter exporter)
4546
ResolveComponent:
4647
reg.path = "/nodes/" + id + "/" + reg.propertyBinding;
4748
var componentPath = reg.path;
48-
49+
50+
if (componentPath.Contains(KHR_node_visibility_Factory.EXTENSION_NAME))
51+
break;
52+
4953
var anyOtherResolverWasAbleToResolve = false;
5054
foreach (var res in exporter.pointerResolvers)
5155
{

0 commit comments

Comments
 (0)