From 0149c4caa94777435daa12e59cfbf190332fb535 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 21 Oct 2016 17:29:05 +0300 Subject: MAINT-6855 Developer > Show Info > Show Render Info is not reporting accurate vertex counts for Selected Objects --- indra/newview/llselectmgr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 0838c6c824..e07c11b1e3 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -7200,7 +7200,9 @@ U32 LLObjectSelection::getSelectedObjectTriangleCount(S32* vcount) if (object) { - count += object->getTriangleCount(vcount); + S32 vt = 0; + count += object->getTriangleCount(&vt); + *vcount += vt; } } -- cgit v1.2.3