fix entity errors when using NoCulling

This commit is contained in:
Yagira 2022-04-22 18:41:13 +02:00
parent d62962e8c8
commit 3f2506ad22

View File

@ -476,11 +476,11 @@ function PART:DrawModel(ent, pos, ang)
ent_draw_model(self, ent, pos, ang)
ent.pac_drawing_model = false
_self, _ent, _pos, _ang = self, ent, pos, ang
if self.ClassName ~= "entity2" then
render.PushFlashlightMode(true)
_self, _ent, _pos, _ang = self, ent, pos, ang
material_bound = self:BindMaterials(ent) or material_bound
ent.pac_drawing_model = true
ProtectedCall(protected_ent_draw_model)