Skip to content

Commit

Permalink
Fix object loading in N3FXE and SkyViewer to use existing dummy objects.
Browse files Browse the repository at this point in the history
Previously, non-existent objects were loaded, causing assertion errors
in debug builds. Updated to load valid dummy objects.
  • Loading branch information
stevewgr committed Nov 12, 2024
1 parent 1f826b2 commit fb7a335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tool/N3FXE/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {
m_Light[1].m_Data.InitDirection(1, __Vector3(0, 1, 0), crLgt);

//
m_Chr.LoadFromFile("object\\obj_baba.n3shape");
m_Chr.LoadFromFile("ChrSelect\\el_chairs.n3shape");

m_pGround = new CGround;

Expand Down
2 changes: 1 addition & 1 deletion src/tool/SkyViewer/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {
m_Lights[1].m_Data.InitDirection(1, __Vector3(0, 0, -1), crLgt);
m_Lights[2].m_Data.InitPoint(2, __Vector3(0, 0, 0), crLgt, 32.0f);

m_ObjectBundle.LoadFromFile("Object\\Field.N3Shape"); // 배경으로 쓸 오브젝트 부르기..
m_ObjectBundle.LoadFromFile("ChrSelect\\el_chairs.n3shape"); // 배경으로 쓸 오브젝트 부르기..

return 0;
}
Expand Down

0 comments on commit fb7a335

Please sign in to comment.