Skip to content

Commit

Permalink
Update BrioIPCService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Minmoose committed Jan 10, 2025
1 parent 68f67f5 commit b6e4379
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Brio/IPC/BrioIPCService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,10 @@ private void DisposeIPC()
{
if(_entityManager.TryGetEntity(character.Native(), out var entity))
{
var actionTimeline = entity.GetCapability<ActionTimelineCapability>();
actionTimeline.SetOverallSpeedOverride(0);
if(entity.TryGetCapability<ActionTimelineCapability>(out var actionTimeline))
{
actionTimeline.SetOverallSpeedOverride(0);
}
}
},
100,
Expand Down Expand Up @@ -406,7 +408,7 @@ private unsafe bool LoadFromJson_Impl(IGameObject gameObject, string json, bool
}
else
{
posingCapability.ImportPose(JsonSerializer.Deserialize<PoseFile>(json), null, asIPCpose: true);
posingCapability.ImportPose(JsonSerializer.Deserialize<PoseFile>(json), null, asIPCpose: false);
}

return true;
Expand Down

0 comments on commit b6e4379

Please sign in to comment.