From 672d8ce626f6bebf3c671bc025c5f9337270b03c Mon Sep 17 00:00:00 2001 From: denis Date: Sun, 10 Nov 2024 10:53:19 +0100 Subject: [PATCH] Added groups --- Engine/include/Physics/Physics.h | 2 +- GUI/src/MeshInfo.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Engine/include/Physics/Physics.h b/Engine/include/Physics/Physics.h index 4543cb9..e40d437 100644 --- a/Engine/include/Physics/Physics.h +++ b/Engine/include/Physics/Physics.h @@ -27,7 +27,7 @@ namespace Prisma struct CollisionData { - Collider collider; + Collider collider = Collider::BOX_COLLIDER; float mass = 0.0f; bool dynamic = false; bool softBody = false; diff --git a/GUI/src/MeshInfo.cpp b/GUI/src/MeshInfo.cpp index 9f27909..6278030 100644 --- a/GUI/src/MeshInfo.cpp +++ b/GUI/src/MeshInfo.cpp @@ -9,9 +9,6 @@ void Prisma::MeshInfo::showSelected(const NodeViewer::NodeData& meshData) { if (meshData.node) { - NodeViewer::NodeData parentData = meshData; - parentData.node = parentData.node->parent(); - std::shared_ptr physicsComponent = nullptr; for (auto component : meshData.node->components()) { @@ -24,7 +21,7 @@ void Prisma::MeshInfo::showSelected(const NodeViewer::NodeData& meshData) auto mesh = dynamic_cast(meshData.node); auto isAnimate = dynamic_cast(meshData.node); - NodeViewer::getInstance().showSelected(parentData, false); + NodeViewer::getInstance().showSelected(meshData, false); ImGui::Dummy(ImVec2(0.0f, 4.0f)); if (mesh)