Stop the rotation of DModelPanel

How do I stop a model from rotating when using ModelPanel?

Override the LayoutEntity function:

[lua]
function modelPanel:LayoutEntity( Entity ) self:RunAnimation() end
[/lua]

I said rotation, not animation…

By overriding LayoutEntity like that, you remove the rotation code. You should have a look at the original function here.

Do what he said and you’ll see he’s right.

:ninja:

I really need to start looking at the original files…Thanks for the help