cleanup and removing nasty segv upon entity deletion
+ Fixing bug where clicking an entity in the hierarchy didn't update the stats
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
#ifndef EDITOR_COMPONENT_HPP
|
||||
#define EDITOR_COMPONENT_HPP
|
||||
|
||||
#include "open_engine/scene/components.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <entt/entity/fwd.hpp>
|
||||
#include <glm/fwd.hpp>
|
||||
#include <imgui.h>
|
||||
|
||||
namespace OpenEngine {
|
||||
|
||||
/*
|
||||
void DrawVec3Control(const char* label, glm::vec3& values,
|
||||
float reset_value = 0.0f, float column_width = 100.0f,
|
||||
const std::array<const char*, 3> labels = {"x", "y", "z"});
|
||||
*/
|
||||
|
||||
void TagOnImGuiRender(entt::registry& registry, entt::entity entity);
|
||||
|
||||
@@ -21,7 +19,6 @@ namespace OpenEngine {
|
||||
void SpriteOnImGuiRender(entt::registry& registry, entt::entity entity);
|
||||
|
||||
void CameraOnImGuiRender(entt::registry& registry, entt::entity entity);
|
||||
|
||||
}
|
||||
|
||||
#endif // EDITOR_COMPONENT_HPP
|
||||
|
||||
Reference in New Issue
Block a user