summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2017-04-14 17:13:57 +0300
committerandreykproductengine <akleshchev@productengine.com>2017-04-14 17:13:57 +0300
commit5ddac01ef274285ed39ab2248382531b710fdb75 (patch)
tree85d6d04fa0535397327ba1a8efd8a90de79b021d
parent17cdd5bb0c6e48fe8b8185bb68ad0e53f6421f8b (diff)
MAINT-7058 Fixed missing extents for generated (split) faces
-rw-r--r--indra/llprimitive/lldaeloader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llprimitive/lldaeloader.cpp b/indra/llprimitive/lldaeloader.cpp
index 76d3a405d8..768dc8284b 100644
--- a/indra/llprimitive/lldaeloader.cpp
+++ b/indra/llprimitive/lldaeloader.cpp
@@ -305,6 +305,8 @@ LLModel::EModelStatus load_face_from_dom_triangles(std::vector<LLVolumeFace>& fa
}
face = LLVolumeFace();
+ face.mExtents[0].set(v[0], v[1], v[2]);
+ face.mExtents[1].set(v[0], v[1], v[2]);
point_map.clear();
}
}
@@ -549,6 +551,8 @@ LLModel::EModelStatus load_face_from_dom_polylist(std::vector<LLVolumeFace>& fac
}
face = LLVolumeFace();
+ face.mExtents[0].set(v[0], v[1], v[2]);
+ face.mExtents[1].set(v[0], v[1], v[2]);
verts.clear();
indices.clear();
point_map.clear();