Skip to content

Commit

Permalink
camera backgroundcolor animation target should be the component
Browse files Browse the repository at this point in the history
  • Loading branch information
marwie committed Nov 10, 2023
1 parent af438cb commit 982a341
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Runtime/Scripts/Extensions/KHR_animation_pointer_Resolver.cs
Expand Up @@ -44,8 +44,11 @@ public void Resolve(GLTFSceneExporter exporter)
reg.path = "/extensions/KHR_lights_punctual/lights/" + id + "/" + reg.propertyBinding;
break;
case Camera camera:
if(reg.propertyBinding == "backgroundColor")
if (reg.propertyBinding == "backgroundColor")
{
id = exporter.GetTransformIndex(camera.transform);
goto ResolveComponent;
}
reg.path = "/cameras/" + id + "/" + reg.propertyBinding;
break;
case SkinnedMeshRenderer smr:
Expand Down

0 comments on commit 982a341

Please sign in to comment.