Skip to content

Commit

Permalink
removed variable captureChangeRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Neureither committed Oct 4, 2019
1 parent d63ae8a commit 852ef76
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion UCGeometrics/Assets/Scripts/UCManageCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ private void LateUpdate()
public IEnumerator CapturePNGSendAsBytes()
{
Debug.Log("Coroutine entered");
UnityCommunicator.captureChangeRequest = false;
//Wait until frame is rendered completely
yield return new WaitForEndOfFrame();

Expand Down
5 changes: 1 addition & 4 deletions UCGeometrics/Assets/Scripts/UnityCommunicatorClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
public class UnityCommunicatorClient
{
#region members
[HideInInspector] public bool[] objectParametersSet; //tells if every object is set to new json parameters
[HideInInspector] public bool captureChangeRequest; //tells if there are new paramteres to render
[HideInInspector] public bool[] objectParametersSet; //tells if every object is set to new json parameters
[HideInInspector] public bool sceneShotProcessed; //tells if next parameters can be received
[HideInInspector] public JSONCaptureParameters CaptureParameters; //stores all received parameters for scene (accessed by TCPGameObjectController)

Expand All @@ -32,7 +31,6 @@ public UnityCommunicatorClient(int numberOfObjects)
this.numberOfObjects = numberOfObjects;
readyToCapture = false;
endSession = false;
captureChangeRequest = false;
sceneShotProcessed = true;
objectParametersSet = new bool[numberOfObjects];
}
Expand Down Expand Up @@ -87,7 +85,6 @@ public void ReceiveParameters()
else
{
jsonparameters = serverMessage.Substring(0, serverMessage.IndexOf("eod.", StringComparison.Ordinal - 1));
captureChangeRequest = true;
sceneShotProcessed = false;

//Set every object's Render Status to false
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"host": "localhost", "ports": [50000, 50098]}
{"host": "localhost", "ports": [50000, 50100]}

0 comments on commit 852ef76

Please sign in to comment.