mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:58:07 +02:00
Bug fix for avatar debug marker rendering.
"Developer > Hands > Show Hand Targets" works again "Developer > Avatar > Draw Position" works again
This commit is contained in:
parent
9962d47173
commit
f24c92f3a1
1 changed files with 3 additions and 2 deletions
|
@ -374,8 +374,6 @@ void AnimDebugDraw::update() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data._vertexBuffer->resize(sizeof(Vertex) * numVerts);
|
|
||||||
data._vertexBuffer->setSubData<Vertex>(0, vertices);
|
|
||||||
|
|
||||||
// draw markers from shared DebugDraw singleton
|
// draw markers from shared DebugDraw singleton
|
||||||
for (auto& iter : markerMap) {
|
for (auto& iter : markerMap) {
|
||||||
|
@ -403,6 +401,9 @@ void AnimDebugDraw::update() {
|
||||||
}
|
}
|
||||||
DebugDraw::getInstance().clearRays();
|
DebugDraw::getInstance().clearRays();
|
||||||
|
|
||||||
|
data._vertexBuffer->resize(sizeof(Vertex) * numVerts);
|
||||||
|
data._vertexBuffer->setSubData<Vertex>(0, vertices);
|
||||||
|
|
||||||
assert((!numVerts && !v) || (numVerts == (v - &vertices[0])));
|
assert((!numVerts && !v) || (numVerts == (v - &vertices[0])));
|
||||||
|
|
||||||
render::Item::Bound theBound;
|
render::Item::Bound theBound;
|
||||||
|
|
Loading…
Reference in a new issue