Making a DModelPanel stop rotating.

I know it must be there somewhere. any help is appreciated.

Oh and how do you change the angle of the model?

**[DModelPanel.LayoutEntity

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=DModelPanel.LayoutEntity)**

to elaborate on that, you can make custom rotations too

[lua]
function Object:LayoutEntity(Entity)
if ( self.bAnimated ) then
self:RunAnimation()
end
Entity:SetAngles(Angle(Entity:GetAngles().p+1,
Entity:GetAngles().y-1,
Entity:GetAngles().r+2) )
end
[/lua]