diff --git a/Exodia/src/Layer/EditorLayer.cpp b/Exodia/src/Layer/EditorLayer.cpp index 9448717b..70a90838 100644 --- a/Exodia/src/Layer/EditorLayer.cpp +++ b/Exodia/src/Layer/EditorLayer.cpp @@ -17,8 +17,9 @@ namespace Exodia { // Constructor & Destructor // ////////////////////////////// - EditorLayer::EditorLayer() : Layer("Exodia Editor"), _EditorCamera(30.0f, 1.778f, 0.1f, 1000.0f), _ActiveScene(nullptr), _SceneState(SceneState::Edit), _ViewportSize{0.0f, 0.0f}, _ViewportHovered(false), _ShowCollisions(false) - { + EditorLayer::EditorLayer() + : Layer("Exodia Editor"), _EditorCamera(30.0f, 1.778f, 0.1f, 1000.0f), _ActiveScene(nullptr), + _SceneState(SceneState::Edit), _ViewportSize{0.0f, 0.0f}, _ViewportHovered(false), _ShowCollisions(false) { _ViewportBounds[0] = {0.0f, 0.0f}; _ViewportBounds[1] = {0.0f, 0.0f}; } @@ -130,7 +131,9 @@ namespace Exodia { if (mouseX >= 0 && mouseY >= 0 && mouseX < (int)viewportSize.x && mouseY < (int)viewportSize.y) { int pixelData = _Framebuffer->ReadPixel(1, mouseX, mouseY); - _HoveredEntity = (pixelData == -1) ? GameObject() : GameObject(_ActiveScene->GetWorld().GetEntityByID((uint64_t)pixelData), _ActiveScene.get()); + _HoveredEntity = (pixelData == -1) ? GameObject() + : GameObject(_ActiveScene->GetWorld().GetEntityByID((uint64_t)pixelData), + _ActiveScene.get()); } OnOverlayRender(); diff --git a/Exodia/src/Panel/SceneHierarchy/SceneHierarchy.cpp b/Exodia/src/Panel/SceneHierarchy/SceneHierarchy.cpp index 64b1a2a3..1385eb67 100644 --- a/Exodia/src/Panel/SceneHierarchy/SceneHierarchy.cpp +++ b/Exodia/src/Panel/SceneHierarchy/SceneHierarchy.cpp @@ -187,8 +187,5 @@ namespace Exodia { void SceneHierarchy::SetSelectedEntity(Entity *entity) { _SelectedEntity = entity; } - GameObject SceneHierarchy::GetSelectedEntity() const - { - return { _SelectedEntity, _Context.get() }; - }; + GameObject SceneHierarchy::GetSelectedEntity() const { return {_SelectedEntity, _Context.get()}; }; }; // namespace Exodia