Skip to content

Commit

Permalink
Fix editor camera first time selection
Browse files Browse the repository at this point in the history
  • Loading branch information
OrfeasZ committed Dec 31, 2023
1 parent 0693574 commit 4438548
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mods/Editor/Src/Components/EntityTree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ void Editor::OnSelectEntity(ZEntityRef p_Entity, std::optional<std::string> p_Cl

Globals::Selections->push_back(s_EntityRef);
}
else {

if (m_SelectionForFreeCameraEditorStyleEntity) {
m_SelectionForFreeCameraEditorStyleEntity->m_selection.clear();
m_SelectionForFreeCameraEditorStyleEntity->m_selection.push_back(p_Entity);
}
Expand Down

0 comments on commit 4438548

Please sign in to comment.