fixing double adding a component

This commit is contained in:
Erris
2026-03-12 20:03:40 +01:00
parent 2175b60990
commit 913d1437c0
4 changed files with 7 additions and 4 deletions

View File

@@ -10,6 +10,7 @@
#include "open_engine/renderer/renderer3d.hpp"
#include "open_engine/scene/components.hpp"
#include "panels/content_browser.hpp"
#include "panels/models_panel.hpp"
#include "panels/scene_hierarchy.hpp"
#include <Jolt/Physics/Collision/Shape/Shape.h>
@@ -146,8 +147,8 @@ namespace OpenEngine {
Ref<Model3D> monkey = Model3D::Create("./assets/models/monkey.glb");
cube3.AddComponent<ModelComponent>(model);
cube3.AddComponent<ModelComponent>(model2);
cube4.AddComponent<ModelComponent>(monkey);
cube5.AddComponent<ModelComponent>(model2);
/*
auto view = scene->GetRegistry().view<TagComponent>();
@@ -585,6 +586,7 @@ namespace OpenEngine {
DrawStats();
scene_hierarchy.OnImGuiRender();
browser.OnImGuiRender();
ModelsPanelOnImGuiRender();
DrawViewport();
DrawPlayBar();