[BUG] DModelPanel not rendering model animations correctly

I have been working on a gamemode for a while now and noticed since the last update DModelPanel’s are not working properly on multiplayer servers. Their animations run in reverse and they don’t display a normal walking animation. They work fine in single player. I tested this code on a vanilla client and vanilla SRCDS server to verify my findings:


local FRAME = vgui.Create("DFrame")
	FRAME:SetSize(300,300)
	FRAME:Center()
	FRAME:SetTitle("DModelPanel Bug")
	FRAME:MakePopup()
local DMPANEL = vgui.Create("DModelPanel",FRAME)
	DMPANEL:SetSize(300,280)
	DMPANEL:AlignBottom(0)
	DMPANEL:SetModel("models/kleiner.mdl")
	DMPANEL:SetAnimated(true)
	DMPANEL:SetFOV(90)
	DMPANEL:SetAnimSpeed(1)

Note: They work fine in singleplayer, but in multiplayer they appear broken.

I had this issue too, must be the last tf2 update that brought us that.

That’s when I noticed it broke too. I asked someone else I know and they have the same problem, so I know its not just me. Hope Garry will see this and fix it. The models look like they are mentally handicapped now lol.

I have more info on this bug. I have been redesigning my vgui and noticed that when a player is set to the same model that the DModelPanel is set to it bugs out.

Before I spawn as this model:

After I spawn as this model:

The only thing I can figure is that maybe something changed with the ClientsideModel function that DModelPanel uses to render models which makes this bug appear.