Skip to content

Commit

Permalink
modifying retrieval of ImageSynthesis component off of agent to use t…
Browse files Browse the repository at this point in the history
…he camera instead of the agent gameobject to avoid finding the ImageSynthesis component for the SecondaryCamera on the stretchrobot
  • Loading branch information
Eric Kolve committed Feb 25, 2022
1 parent 546c50b commit cf23e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unity/Assets/Scripts/BaseFPSAgentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1776,7 +1776,7 @@ public virtual MetadataWrapper generateMetadataWrapper() {

public virtual void updateImageSynthesis(bool status) {
if (this.imageSynthesis == null) {
imageSynthesis = this.gameObject.GetComponentInChildren<ImageSynthesis>() as ImageSynthesis;
imageSynthesis = this.m_Camera.gameObject.GetComponent<ImageSynthesis>() as ImageSynthesis;
}
imageSynthesis.enabled = status;
}
Expand Down

0 comments on commit cf23e65

Please sign in to comment.