Transformation system path

This commit is contained in:
Antoine Pilote
2023-09-16 12:10:05 -04:00
parent d5e576e7b5
commit cfbc3fa2c1
4 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -312,6 +312,7 @@ namespace Nuake
}
Renderer::Flush(gBufferShader, false);
RenderCommand::Disable(RendererEnum::FACE_CULL);
// Sprites
auto spriteView = scene.m_Registry.view<TransformComponent, SpriteComponent, VisibilityComponent>();
for (auto& e : spriteView)

View File

@@ -488,7 +488,6 @@ namespace Nuake
skeletonRoot.EntityHandle = skeletonRootEntity.GetHandle();
entity.AddChild(skeletonRootEntity);
Vector3 bonePosition;
Quat boneRotation;
Vector3 boneScale;

View File

@@ -78,8 +78,9 @@ namespace Nuake
Quat globalOrientation = transform.GetLocalRotation();
Vector3 globalScale = transform.GetLocalScale();
#ifndef FRAME_PERFECT_TRANSFORM
ParentComponent parentComponent = currentParent.GetComponent<ParentComponent>();
#define FRAME_PERFECT_TRANSFORM
#ifndef FRAME_PERFECT_TRANSFORM
if (parentComponent.HasParent)
{
TransformComponent& transformComponent = parentComponent.Parent.GetComponent<TransformComponent>();