프로그램 외부로 마우스 포커스 이동 후 재조작시 카메라가 급회전 하는 오류 수정 #146
@@ -14,6 +14,7 @@ namespace RTG
|
|||||||
public event RTGAppInitializedHandler Initialized;
|
public event RTGAppInitializedHandler Initialized;
|
||||||
private Camera _renderCamera;
|
private Camera _renderCamera;
|
||||||
private RenderPipelineId _renderPipelineId;
|
private RenderPipelineId _renderPipelineId;
|
||||||
|
private bool isPaused;
|
||||||
|
|
||||||
public RenderPipelineId RenderPipelineId { get { return _renderPipelineId; } }
|
public RenderPipelineId RenderPipelineId { get { return _renderPipelineId; } }
|
||||||
public Camera RenderCamera { get { return _renderCamera; } }
|
public Camera RenderCamera { get { return _renderCamera; } }
|
||||||
@@ -103,6 +104,9 @@ namespace RTG
|
|||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
|
if (isPaused)
|
||||||
|
return;
|
||||||
|
|
||||||
// Note: Don't change the order :)
|
// Note: Don't change the order :)
|
||||||
RTInputDevice.Get.Update_SystemCall();
|
RTInputDevice.Get.Update_SystemCall();
|
||||||
RTFocusCamera.Get.Update_SystemCall();
|
RTFocusCamera.Get.Update_SystemCall();
|
||||||
@@ -207,6 +211,9 @@ namespace RTG
|
|||||||
typeof(RTInputDevice), typeof(RTUndoRedo), typeof(RTGizmosEngine),
|
typeof(RTInputDevice), typeof(RTUndoRedo), typeof(RTGizmosEngine),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
private void OnApplicationFocus(bool focus)
|
||||||
|
{
|
||||||
|
isPaused = !focus;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user