Skip to content

Commit

Permalink
Bugfix, no failure for null agent body
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroHG committed Aug 16, 2024
1 parent 6198bd9 commit 5a75cd2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions unity/Assets/Scripts/FpinAgentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ public ActionFinished InitializeBody(
{
return new ActionFinished(spawnAssetActionFinished)
{
success = true,
// TODO: change to a proper class once metadata return is defined
actionReturn = new Dictionary<string, object>()
{
Expand All @@ -1009,16 +1010,16 @@ spawnAssetActionFinished.actionReturn as ObjectSphereBounds
}
else
{
return new ActionFinished()
{
return new ActionFinished(
success: true,
// TODO: change to a proper class once metadata return is defined
actionReturn = new Dictionary<string, object>()
actionReturn: new Dictionary<string, object>()
{
{ "BoxBounds", this.BoxBounds },
{ "cameraNearPlane", m_Camera.nearClipPlane },
{ "cameraFarPlane", m_Camera.farClipPlane }
}
};
);
}
}

Expand Down

0 comments on commit 5a75cd2

Please sign in to comment.