diff --git a/Editor/src/Windows/FileSystemUI.cpp b/Editor/src/Windows/FileSystemUI.cpp index 68dd2361..778e9293 100644 --- a/Editor/src/Windows/FileSystemUI.cpp +++ b/Editor/src/Windows/FileSystemUI.cpp @@ -65,7 +65,6 @@ namespace Nuake ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 4.0f); const char* icon = ICON_FA_FOLDER; const std::string id = ICON_FA_FOLDER + std::string("##") + directory->name; - ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 4.0f); if (ImGui::Button(id.c_str(), ImVec2(100, 100))) { m_CurrentDirectory = directory; diff --git a/Nuake/src/Rendering/SceneRenderer.cpp b/Nuake/src/Rendering/SceneRenderer.cpp index 8f74a7ca..5d816107 100644 --- a/Nuake/src/Rendering/SceneRenderer.cpp +++ b/Nuake/src/Rendering/SceneRenderer.cpp @@ -312,6 +312,7 @@ namespace Nuake } Renderer::Flush(gBufferShader, false); + RenderCommand::Disable(RendererEnum::FACE_CULL); // Sprites auto spriteView = scene.m_Registry.view(); for (auto& e : spriteView) diff --git a/Nuake/src/Scene/Scene.cpp b/Nuake/src/Scene/Scene.cpp index 59fb078d..5d79271b 100644 --- a/Nuake/src/Scene/Scene.cpp +++ b/Nuake/src/Scene/Scene.cpp @@ -488,7 +488,6 @@ namespace Nuake skeletonRoot.EntityHandle = skeletonRootEntity.GetHandle(); entity.AddChild(skeletonRootEntity); - Vector3 bonePosition; Quat boneRotation; Vector3 boneScale; diff --git a/Nuake/src/Scene/Systems/TransformSystem.cpp b/Nuake/src/Scene/Systems/TransformSystem.cpp index 9986e892..e9ee86f3 100644 --- a/Nuake/src/Scene/Systems/TransformSystem.cpp +++ b/Nuake/src/Scene/Systems/TransformSystem.cpp @@ -78,8 +78,9 @@ namespace Nuake Quat globalOrientation = transform.GetLocalRotation(); Vector3 globalScale = transform.GetLocalScale(); -#ifndef FRAME_PERFECT_TRANSFORM ParentComponent parentComponent = currentParent.GetComponent(); +#define FRAME_PERFECT_TRANSFORM +#ifndef FRAME_PERFECT_TRANSFORM if (parentComponent.HasParent) { TransformComponent& transformComponent = parentComponent.Parent.GetComponent();