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

@ -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()
{ {