From 945ac26ad3f02402552457a457e426607de51a3d Mon Sep 17 00:00:00 2001 From: Fredrik Lindahl Date: Sun, 8 Dec 2024 21:46:45 +0100 Subject: [PATCH] Temporarily removed im3d call from application since it doesn't depend on render, and shouldn't. Need to solve this some other way. --- code/application/game/componentinspection.cc | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/code/application/game/componentinspection.cc b/code/application/game/componentinspection.cc index d4b67eb47..3b1613fc1 100644 --- a/code/application/game/componentinspection.cc +++ b/code/application/game/componentinspection.cc @@ -12,7 +12,7 @@ #include "util/stringatom.h" #include "editorstate.h" #include "core/cvar.h" -#include "dynui/im3d/im3dcontext.h" +//#include "dynui/im3d/im3dcontext.h" #include "game/world.h" namespace Game @@ -143,16 +143,16 @@ ComponentDrawFuncT(Game::Entity owner, ComponentId component, void } ImGui::EndGroup(); - if (Core::CVarReadInt(cl_draw_entity_references) == 1) - { - if (owner.world == entity->world) - { - Game::Position p0 = world->GetComponent(owner); - Game::Position p1 = world->GetComponent(*entity); - Math::line line = Math::line(p0, p1); - Im3d::Im3dContext::DrawLine(line, 1.0f, Math::vec4(0.0f, 1.0f, 0.0f, 1.0f)); - } - } + //if (Core::CVarReadInt(cl_draw_entity_references) == 1) + //{ + // if (owner.world == entity->world) + // { + // Game::Position p0 = world->GetComponent(owner); + // Game::Position p1 = world->GetComponent(*entity); + // Math::line line = Math::line(p0, p1); + // Im3d::Im3dContext::DrawLine(line, 1.0f, Math::vec4(0.0f, 1.0f, 0.0f, 1.0f)); + // } + //} } if (ImGui::BeginDragDropTarget()) {