Tried to fix clearing children but failed miserably

This commit is contained in:
Vulpovile
2021-03-14 13:43:12 -07:00
parent 2a6d90ad66
commit 816a67a40b
6 changed files with 17 additions and 11 deletions

View File

@@ -245,19 +245,11 @@ bool PartInstance::collides(Box box)
void PartInstance::render(RenderDevice* rd) {
if (changed)
{
changed=false;
Vector3 renderSize = size/2;
glNewList(glList, GL_COMPILE_AND_EXECUTE);
glColor(this->color);
glNewList(glList, GL_COMPILE);
renderShape(this->shape, renderSize, color);
glEndList();
changed = false;
return;
changed=false;
}
rd->setObjectToWorldMatrix(cFrame);
glCallList(glList);