Does not render non visible models anymore.
This commit is contained in:
parent
8798fc9006
commit
9ec3fc6fa4
|
@ -90,10 +90,13 @@ int C_Object::GetId() const
|
|||
void C_Object::Render()
|
||||
{
|
||||
if( this->model )
|
||||
{
|
||||
if(this->model->Visible)
|
||||
{
|
||||
Oyster::Graphics::API::RenderModel(model);
|
||||
}
|
||||
}
|
||||
}
|
||||
void C_Object::Release()
|
||||
{
|
||||
if( this->model )
|
||||
|
|
Loading…
Reference in New Issue