From b4bfc0c80fc72c77cdd55143468cbcc7a151925e Mon Sep 17 00:00:00 2001 From: Tom O'Sullivan Date: Sat, 6 Feb 2021 10:32:21 +0000 Subject: [PATCH] Fix VGUIs drawing in 2D when the player is behind the screen Credit to: @Matrix324 --- cl_ui3d2d.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_ui3d2d.lua b/cl_ui3d2d.lua index d40c7ef..29642da 100644 --- a/cl_ui3d2d.lua +++ b/cl_ui3d2d.lua @@ -85,7 +85,7 @@ do --Rendering context creation and mouse position getters local normal = angles:Up() local dot = eyePosToUi:Dot(normal) - if dot >= 0 then return end + if dot >= 0 then return true end end isRendering = true @@ -138,4 +138,4 @@ do --Rendering context creation and mouse position getters end end -hook.Run("ui3d2d.fullyLoaded") \ No newline at end of file +hook.Run("ui3d2d.fullyLoaded")