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