Skip to content

Commit

Permalink
fix: w2s component view inline bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed Mar 8, 2022
1 parent 545f734 commit 03975c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Code/client/Services/Debug/Views/ComponentView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ float CalculateFloatingQuestMarkerAlpha()
}
#endif

static bool DrawInWorldSpace(TESObjectREFR* apRefr, ImVec2& outViewPos)
static __declspec(noinline) bool DrawInWorldSpace(TESObjectREFR* apRefr, ImVec2& outViewPos)
{
// Attach at the head ish.
auto pos = apRefr->position;
Expand Down Expand Up @@ -99,9 +99,6 @@ static TESForm* g_SelectedForm{nullptr};

void TestService::DrawComponentDebugView()
{
auto invisibleView =
m_world.view<RemoteComponent, InterpolationComponent, RemoteAnimationComponent>(entt::exclude<FormIdComponent>);

ImGui::SetNextWindowSize(ImVec2(250, 300), ImGuiCond_FirstUseEver);
ImGui::Begin("Component view", &m_toggleComponentWindow);

Expand Down

0 comments on commit 03975c7

Please sign in to comment.