Does not render non visible models anymore.

This commit is contained in:
Pontus Fransson 2014-02-26 10:22:43 +01:00
parent 8798fc9006
commit 9ec3fc6fa4
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ void C_Object::Render()
{ {
if( this->model ) if( this->model )
{ {
Oyster::Graphics::API::RenderModel(model); if(this->model->Visible)
{
Oyster::Graphics::API::RenderModel(model);
}
} }
} }
void C_Object::Release() void C_Object::Release()