mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-19 19:26:36 +02:00
update entt to v3.7.1
This commit is contained in:
@ -37,7 +37,7 @@ void Camera3D(MM::Scene& scene) {
|
||||
|
||||
MM::ImGuiWidgets::Entity(tracking, scene);
|
||||
if (scene.valid(tracking)) {
|
||||
if (scene.has<MM::Components::Transform2D>(tracking)) {
|
||||
if (scene.all_of<MM::Components::Transform2D>(tracking)) {
|
||||
camera->translation = {scene.get<MM::Components::Transform2D>(tracking).position, 0.f};
|
||||
} else {
|
||||
ImGui::TextUnformatted("error: Entity has no Transform");
|
||||
|
@ -14,7 +14,7 @@ void Entity(MM::Entity& e, MM::Scene& ecs, bool dropTarget) {
|
||||
ImGui::PushID(static_cast<int>(entt::to_integral(e)));
|
||||
|
||||
if (ecs.valid(e)) {
|
||||
if (ecs.has<MM::Components::Name>(e)) {
|
||||
if (ecs.all_of<MM::Components::Name>(e)) {
|
||||
ImGui::Text(ICON_II_CUBE "E: %d v%d (%s)", entt::to_integral(ecs.entity(e)), ecs.version(e), ecs.get<MM::Components::Name>(e).str.c_str());
|
||||
} else {
|
||||
ImGui::Text(ICON_II_CUBE "E: %d v%d", entt::to_integral(ecs.entity(e)), ecs.version(e));
|
||||
|
Reference in New Issue
Block a user