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

@ -90,9 +90,12 @@ int C_Object::GetId() const
void C_Object::Render() void C_Object::Render()
{ {
if( this->model ) if( this->model )
{
if(this->model->Visible)
{ {
Oyster::Graphics::API::RenderModel(model); Oyster::Graphics::API::RenderModel(model);
} }
}
} }
void C_Object::Release() void C_Object::Release()
{ {