diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp | 4 | ||||
-rw-r--r-- | source/blender/freestyle/intern/scene_graph/IndexedFaceSet.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp index 7a61b735c4d..7949a022566 100644 --- a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp +++ b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp @@ -776,12 +776,12 @@ void BlenderFileLoader::insertShapeNode(ObjectInstanceRen *obi, int id) for (v = detriList.begin(); v != detriList.end(); v++) { detri_t detri = (*v); if (detri.n == 0) { - cleanVertices[detri.viP] = cleanVertices[detri.viA]; + cleanVertices[detri.viP] = cleanVertices[detri.viA]; cleanVertices[detri.viP + 1] = cleanVertices[detri.viA + 1]; cleanVertices[detri.viP + 2] = cleanVertices[detri.viA + 2]; } else if (detri.v.norm() > 0.0) { - cleanVertices[detri.viP] += 1.0e-5 * detri.v.x(); + cleanVertices[detri.viP] += 1.0e-5 * detri.v.x(); cleanVertices[detri.viP + 1] += 1.0e-5 * detri.v.y(); cleanVertices[detri.viP + 2] += 1.0e-5 * detri.v.z(); } diff --git a/source/blender/freestyle/intern/scene_graph/IndexedFaceSet.cpp b/source/blender/freestyle/intern/scene_graph/IndexedFaceSet.cpp index 8a2740b94df..90bf388baa0 100644 --- a/source/blender/freestyle/intern/scene_graph/IndexedFaceSet.cpp +++ b/source/blender/freestyle/intern/scene_graph/IndexedFaceSet.cpp @@ -34,7 +34,7 @@ IndexedFaceSet::IndexedFaceSet() : Rep() _Vertices = NULL; _Normals = NULL; _FrsMaterials = 0; - _TexCoords = 0; + _TexCoords = NULL; _FaceEdgeMarks = 0; _VSize = 0; _NSize = 0; |