Skip to content

Commit

Permalink
ECEditorWindow::SetFocus: show gizmo only if gizmo is enabled from th…
Browse files Browse the repository at this point in the history
…e settings.
  • Loading branch information
Stinkfist0 committed Dec 5, 2013
1 parent c5b6204 commit 23d165e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Core/ECEditorModule/ECEditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,8 @@ void ECEditorWindow::RemoveEntity(Entity* entity)
void ECEditorWindow::SetFocus(bool focus)
{
hasFocus = focus;
SetGizmoVisible(!SelectedEntities().empty() && hasFocus);
const bool enabled = framework->Module<ECEditorModule>()->IsGizmoEnabled();
SetGizmoVisible(enabled && hasFocus && !SelectedEntities().empty());
if (framework->Module<ECEditorModule>()->IsHighlightingEnabled())
for(int i = 0; i < entityList->count(); i++)
{
Expand Down

0 comments on commit 23d165e

Please sign in to comment.