Commit d721d0ba authored by Jan Möbius's avatar Jan Möbius

Segfault fix for halfedge textures

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8518 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 22be7dd3
......@@ -137,8 +137,8 @@ void TextureControlPlugin::copyTexture ( Texture& _texture , MeshT& _mesh, OpenM
double max,min;
computeMinMaxScalar(_texture, _mesh, _texProp, min, max);
if ( !_mesh.has_vertex_texcoords2D() )
_mesh.request_vertex_texcoords2D();
if ( !_mesh.has_halfedge_texcoords2D() )
_mesh.request_halfedge_texcoords2D();
for ( typename MeshT::HalfedgeIter h_it = _mesh.halfedges_begin(); h_it != _mesh.halfedges_end(); ++h_it) {
......
......@@ -63,8 +63,8 @@ void TextureControlPlugin::copyTexture ( Texture& /*_texture*/, MeshT& _mesh, Op
template< typename MeshT >
void TextureControlPlugin::copyTexture ( Texture& /*_texture*/, MeshT& _mesh, OpenMesh::HPropHandleT< OpenMesh::Vec2d > _texProp )
{
if ( !_mesh.has_vertex_texcoords2D() )
_mesh.request_vertex_texcoords2D();
if ( !_mesh.has_halfedge_texcoords2D() )
_mesh.request_halfedge_texcoords2D(();
for ( typename MeshT::HalfedgeIter h_it = _mesh.halfedges_begin(); h_it != _mesh.halfedges_end(); ++h_it) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment