forked from mirror/openmw-tes3mp
Switching handleShapes to use sets instead of maps
This commit is contained in:
parent
d51dfebde1
commit
93a4060346
1 changed files with 4 additions and 4 deletions
|
@ -16,8 +16,8 @@ namespace MWRender{
|
|||
|
||||
|
||||
|
||||
std::map<unsigned int, bool> vertices;
|
||||
std::map<unsigned int, bool> normals;
|
||||
std::set<unsigned int> vertices;
|
||||
std::set<unsigned int> normals;
|
||||
std::vector<Nif::NiSkinData::BoneInfoCopy> boneinfovector = copy.boneinfo;
|
||||
|
||||
//std::cout << "Name " << copy.sname << "\n";
|
||||
|
@ -103,7 +103,7 @@ namespace MWRender{
|
|||
{
|
||||
Ogre::Vector3 absVertPos = vecPos + vecRot * allvertices[verIndex];
|
||||
absVertPos = absVertPos * boneinfo.weights[j].weight;
|
||||
vertices[verIndex] = true;
|
||||
vertices.insert(verIndex);
|
||||
Ogre::Real* addr = (pReal + 3 * verIndex);
|
||||
*addr = absVertPos.x;
|
||||
*(addr+1) = absVertPos.y;
|
||||
|
@ -130,7 +130,7 @@ namespace MWRender{
|
|||
{
|
||||
Ogre::Vector3 absNormalsPos = vecRot * allnormals[verIndex];
|
||||
absNormalsPos = absNormalsPos * boneinfo.weights[j].weight;
|
||||
normals[verIndex] = true;
|
||||
normals.insert(verIndex);
|
||||
Ogre::Real* addr = (pRealNormal + 3 * verIndex);
|
||||
*addr = absNormalsPos.x;
|
||||
*(addr+1) = absNormalsPos.y;
|
||||
|
|
Loading…
Reference in a new issue