Showing the changes to interface/src/main.cpp (1 of 1 file). Show all
Unified · Split
| @@ -586,10 +586,11 @@ void display(void) · 585 unmodified lines | ||
| 586 | 586 | for(std::vector<Agent>::iterator agent = agentList.agents.begin(); agent != agentList.agents.end(); agent++) { |
| 587 | 587 | if (agent->linkedData != NULL) { |
| 588 | 588 | Head *agentHead = (Head *)agent->linkedData; |
| 589 | − | |
| 589 | + glPushMatrix(); | |
| 590 | 590 | glm::vec3 pos = agentHead->getPos(); |
| 591 | 591 | glTranslatef(-pos.x, -pos.y, -pos.z); |
| 592 | 592 | agentHead->render(0, &location[0]); |
| 593 | + glPopMatrix(); | |
| 593 | 594 | } |
| 594 | 595 | } |
| 595 | 596 | |