Skip to content

Commit

Permalink
1.62 bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulBasic committed Oct 17, 2020
1 parent 6d356f7 commit a9217f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion J3DGUI/QT3DReconstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,9 @@ bool QT3DReconstruction::openJ3DView(QString fileName)
}
time_t tm = time(NULL);
while (!Global::CheckViewerMsg()) {
if (time(NULL) - tm > 30) {
if (time(NULL) - tm > 60) {
QMessageBox::information(NULL, "失败", "打开j3d文件失败,请尝试用管理员身份运行软件 ", QMessageBox::Ok, QMessageBox::Ok);
WinExec("taskkill /f /im J3DView.dll", SW_HIDE);
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Viewer/Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,12 +757,12 @@ LRESULT WINAPI MyKeyBoardCallback(int nCode, WPARAM wParam, LPARAM lParam)
}
case GLFW_KEY_A ://A
{
((Scene*)Global::sce)->window.Key(GLFW_KEY_A, 0, GLFW_RELEASE, GLFW_MOD_SUPER);
((Scene*)Global::sce)->window.Key(GLFW_KEY_UP, 0, GLFW_RELEASE, GLFW_MOD_SUPER);
break;
}
case GLFW_KEY_S://S
{
((Scene*)Global::sce)->window.Key(GLFW_KEY_S, 0, GLFW_RELEASE, GLFW_MOD_SUPER);
((Scene*)Global::sce)->window.Key(GLFW_KEY_DOWN, 0, GLFW_RELEASE, GLFW_MOD_SUPER);
break;
}
case GLFW_KEY_ESCAPE://esc
Expand Down

0 comments on commit a9217f9

Please sign in to comment.