mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
push and pop when drawing agent heads
This commit is contained in:
parent
5d8ece7867
commit
e7fc997f78
1 changed files with 2 additions and 1 deletions
|
@ -586,10 +586,11 @@ void display(void)
|
|||
for(std::vector<Agent>::iterator agent = agentList.agents.begin(); agent != agentList.agents.end(); agent++) {
|
||||
if (agent->linkedData != NULL) {
|
||||
Head *agentHead = (Head *)agent->linkedData;
|
||||
|
||||
glPushMatrix();
|
||||
glm::vec3 pos = agentHead->getPos();
|
||||
glTranslatef(-pos.x, -pos.y, -pos.z);
|
||||
agentHead->render(0, &location[0]);
|
||||
glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue