fixing double adding a component
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user