|
@@ -486,7 +486,7 @@ namespace SketchAssistantWPF
|
|
/// <param name="nowDrawing">The new drawingstate of the program</param>
|
|
/// <param name="nowDrawing">The new drawingstate of the program</param>
|
|
public void ChangeState(bool nowDrawing)
|
|
public void ChangeState(bool nowDrawing)
|
|
{
|
|
{
|
|
- if(inDrawingMode && !nowDrawing && currentLine.Count > 0)
|
|
|
|
|
|
+ if(inDrawingMode && !nowDrawing && currentLine.Count > 0 && optiTrackInUse)
|
|
FinishCurrentLine(true);
|
|
FinishCurrentLine(true);
|
|
inDrawingMode = nowDrawing;
|
|
inDrawingMode = nowDrawing;
|
|
UpdateUI();
|
|
UpdateUI();
|
|
@@ -521,7 +521,8 @@ namespace SketchAssistantWPF
|
|
/// <param name="p">The new cursor position</param>
|
|
/// <param name="p">The new cursor position</param>
|
|
public void SetCurrentCursorPosition(Point p)
|
|
public void SetCurrentCursorPosition(Point p)
|
|
{
|
|
{
|
|
- if (!optiTrackInUse) currentCursorPosition = p;
|
|
|
|
|
|
+ //if (!optiTrackInUse)
|
|
|
|
+ currentCursorPosition = p;
|
|
//Temporary position of the optipoint change, change this when merging with optitrack branch
|
|
//Temporary position of the optipoint change, change this when merging with optitrack branch
|
|
mouseDown = programPresenter.IsMousePressed();
|
|
mouseDown = programPresenter.IsMousePressed();
|
|
}
|
|
}
|