Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-09-12 08:29:35 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-09-12 08:29:35 +0400
commit9a1f3c587e366fb555696b27c77ed456ffc15f7d (patch)
tree88cf687861d011b0a0a96cab30c96343d430500d /source/gameengine/Converter/BL_SkinDeformer.cpp
parent4bd0a2ba2dadee66d52f9a1101ee918f1327eec4 (diff)
- fix for mesh_get_mapped_verts_nors copying short normals to floats without scaling.
- BL_SkinDeformer also did this though for that case its not a problem because the normals are later accumulated anyway.
Diffstat (limited to 'source/gameengine/Converter/BL_SkinDeformer.cpp')
-rw-r--r--source/gameengine/Converter/BL_SkinDeformer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Converter/BL_SkinDeformer.cpp b/source/gameengine/Converter/BL_SkinDeformer.cpp
index 98afcf877a1..93c65eb38de 100644
--- a/source/gameengine/Converter/BL_SkinDeformer.cpp
+++ b/source/gameengine/Converter/BL_SkinDeformer.cpp
@@ -316,8 +316,8 @@ bool BL_SkinDeformer::UpdateInternal(bool shape_applied)
/* duplicate */
for (int v =0; v<m_bmesh->totvert; v++)
{
- VECCOPY(m_transverts[v], m_bmesh->mvert[v].co);
- VECCOPY(m_transnors[v], m_bmesh->mvert[v].no);
+ copy_v3_v3(m_transverts[v], m_bmesh->mvert[v].co);
+ normal_short_to_float_v3(m_transnors[v], m_bmesh->mvert[v].no);
}
}