mirror of
https://github.com/chev2/gmod-addons.git
synced 2025-12-18 14:02:21 +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)
|
end)
|
||||||
|
|
||||||
-- Draw meshes for all player sprays
|
-- Draw meshes for all player sprays
|
||||||
hook.Add("PostDrawTranslucentRenderables", "SprayMesh.DrawSprays", function(isDrawingDepth, isDrawingSkybox, isDrawing3DSkybox)
|
hook.Add("PreDrawTranslucentRenderables", "SprayMesh.DrawSprays", function(isDrawingDepth, isDrawingSkybox, isDrawing3DSkybox)
|
||||||
if isDrawingDepth then return end
|
if isDrawingDepth or isDrawingSkybox then return end
|
||||||
|
|
||||||
-- If render order doesn't exist yet, rebuild it
|
-- If render order doesn't exist yet, rebuild it
|
||||||
if not spraymesh.RENDER_ITER_CLIENT then
|
if not spraymesh.RENDER_ITER_CLIENT then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue