Does not render non visible models anymore.

This commit is contained in:
Pontus Fransson 2014-02-26 10:22:43 +01:00 committed by Dander7BD
parent 762aea73a0
commit 8a65907625
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()