mirror of
https://github.com/chev2/gmod-addons.git
synced 2025-10-30 06:31:35 +00:00
Merge pull request #4 from Bonyoze/main
SprayMesh Extended - Fix sprays drawing twice and over translucent renderables
This commit is contained in:
commit
9636b90a83
1 changed files with 2 additions and 2 deletions
|
|
@ -881,8 +881,8 @@ hook.Add("PostDrawHUD", "SprayMesh.GenerateSprayPlaceholderTextures", function()
|
|||
end)
|
||||
|
||||
-- Draw meshes for all player sprays
|
||||
hook.Add("PostDrawTranslucentRenderables", "SprayMesh.DrawSprays", function(isDrawingDepth, isDrawingSkybox, isDrawing3DSkybox)
|
||||
if isDrawingDepth then return end
|
||||
hook.Add("PreDrawTranslucentRenderables", "SprayMesh.DrawSprays", function(isDrawingDepth, isDrawingSkybox, isDrawing3DSkybox)
|
||||
if isDrawingDepth or isDrawingSkybox then return end
|
||||
|
||||
-- If render order doesn't exist yet, rebuild it
|
||||
if not spraymesh.RENDER_ITER_CLIENT then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue