Skip to content

Commit

Permalink
Only render wires if they have a valid material. Fixes #153 and dupli…
Browse files Browse the repository at this point in the history
…cates.
  • Loading branch information
AbigailBuccaneer committed Jul 13, 2013
1 parent 9c0628d commit 2a11774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/wire/client/cl_wirelib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function Wire_Render(ent)
local blink = f < 0.5
local blinkname = ent:GetNetworkedBeamString("BlinkWire")
for _,k in ipairs(p.paths) do
if not (blink and blinkname == k.path_name) then
if not (blink and blinkname == k.path_name) and k.material then
k.scroll = CurTime()*WIRE_SCROLL_SPEED
k.start = ent:LocalToWorld(k.startx)
render.SetMaterial(k.material)
Expand Down

0 comments on commit 2a11774

Please sign in to comment.