Skip to content

Commit

Permalink
Fix Multi-Scene Loading Issues
Browse files Browse the repository at this point in the history
  • Loading branch information
datacrystals committed Jun 25, 2022
1 parent 7e3660f commit 48df658
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ void ERS_CLASS_VisualRenderer::UpdateViewport(int Index, ERS_CLASS_SceneManager*

// Get Selected Model
int SelectedObject = ActiveScene->SelectedObject;
if (SelectedObject >= ActiveScene->SceneObjects_.size()) {
SelectedObject = 0;
ActiveScene->SceneObjects_ = 0;
}

// Get LocRotScale
glm::vec3 Position;
Expand Down

0 comments on commit 48df658

Please sign in to comment.