Skip to content

Commit

Permalink
2.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsankamrani committed Dec 9, 2023
1 parent ee0e893 commit 0eb5f06
Show file tree
Hide file tree
Showing 48 changed files with 845 additions and 195 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Vanda Engine Editor/Debug/Assets/Engine/Publish/publish.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Vanda Engine Editor/Debug/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Vanda Engine 2.9.2
Vanda Engine 2.9.3
Copyright (C) 2023 Ehsan Kamrani

www.vanda3d.org
Expand Down
Binary file added Vanda Engine Editor/Debug/VandaEngineEditor.exp
Binary file not shown.
Binary file added Vanda Engine Editor/Debug/VandaEngineEditor.lib
Binary file not shown.
12 changes: 12 additions & 0 deletions Vanda Engine Editor/VandaEngineEditor/AddEngineCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ void CAddEngineCamera::OnBnClickedOk()
return;
}

if (m_ncp <= 0.0)
{
MessageBox("Near clip plane must be greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}

if (m_fcp <= 0.0)
{
MessageBox("Far clip plane must be greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}

CBool compare = CFalse;
if (!m_strName.IsEmpty())
{
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void CEditCurrentSceneOptions::OnOK()
return;
}

if (m_menuCursorSize < 0.0f)
if (m_menuCursorSize < 0)
{
MessageBox("Cursor size must be greater than 0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
Expand Down
11 changes: 11 additions & 0 deletions Vanda Engine Editor/VandaEngineEditor/EditDOF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,17 @@ void CEditDOF::OnOK()
else
{
GetInformation();
if (m_focalDistance < 0.0)
{
MessageBox("Focal distance must be equal to or greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_focalRange < 0.0)
{
MessageBox("Focal range must be equal to or greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}

g_dofProperties.m_dofFocalDistance = m_focalDistance;
g_dofProperties.m_dofFocalRange = m_focalRange;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,32 +210,42 @@ void CEditGeneralPhysXProperties::OnOK()
{
if (m_fDefaultRestitution < 0.0f || m_fDefaultRestitution > 1.0f)
{
MessageBox("restitution must be between 0 and 1", "Vanda Engine Error", MB_OK | MB_ICONERROR);
MessageBox("restitution must be in the range [0.0,1.0]", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_fDefaultStaticFriction < 0.0)
{
MessageBox("static friction must be between 0 or higher", "Vanda Engine Error", MB_OK | MB_ICONERROR);
MessageBox("static friction must be equal to or greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_fDefaultDynamicFriction < 0.0)
{
MessageBox("dynamic friction must be between 0 or higher", "Vanda Engine Error", MB_OK | MB_ICONERROR);
MessageBox("dynamic friction must be equal to or greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_fDefaultSkinWidth <= 0.0f)
{
MessageBox("skin width must be greater than 0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
MessageBox("skin width must be greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_fCharacterSkinWidth <= 0.0f)
{
MessageBox("character skin width must be greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_fCapsuleRadius <= 0.0f)
{
MessageBox("capsule radius must be greater than 0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
MessageBox("capsule radius must be greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_fCapsuleHeight <= 0.0f)
{
MessageBox("capsule height must be greater than 0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
MessageBox("capsule height must be greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}
if (m_fCharacterStepOffset < 0.0)
{
MessageBox("step offset must be equal to or greater than 0.0", "Vanda Engine Error", MB_OK | MB_ICONERROR);
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void CEditProjectProperties::OnOK()
}

CChar temp[256];
sprintf(temp, "%s%s%s%s%s", "Vanda Engine 2.9.2 (", newProjectName, " - ", m_currentVSceneNameWithoutDot, ")");
sprintf(temp, "%s%s%s%s%s", "Vanda Engine 2.9.3 (", newProjectName, " - ", m_currentVSceneNameWithoutDot, ")");
ex_pVandaEngineDlg->SetWindowTextA(temp);

//save changes to projects.dat
Expand Down Expand Up @@ -230,7 +230,7 @@ void CEditProjectProperties::OnOK()
}

CChar temp[256];
sprintf(temp, "%s%s%s%s%s", "Vanda Engine 2.9.2 (", newProject->m_name, " - ", m_currentVSceneNameWithoutDot, ")");
sprintf(temp, "%s%s%s%s%s", "Vanda Engine 2.9.3 (", newProject->m_name, " - ", m_currentVSceneNameWithoutDot, ")");
ex_pVandaEngineDlg->SetWindowTextA(temp);

//create new directory
Expand Down
Loading

0 comments on commit 0eb5f06

Please sign in to comment.