More debug output

This commit is contained in:
Jan Möbius
2023-02-27 15:18:15 +01:00
parent 8092d73c0e
commit 5d3a1aa38c

View File

@@ -439,13 +439,17 @@ public:
{
OpenMesh::MPropHandleT< std::map< int, std::string > > property;
std::cerr << "add_texture_information " << _id << " name : " << _name << std::endl();
if ( !mesh_.get_property_handle(property,"TextureMapping") ) {
std::cerr << "Added Texturemapping property" << std::endl;
mesh_.add_property(property,"TextureMapping");
}
if ( mesh_.property(property).find( _id ) == mesh_.property(property).end() )
if ( mesh_.property(property).find( _id ) == mesh_.property(property).end() ) {
std::cerr << "Added Texture file " << _name << std::endl;
mesh_.property(property)[_id] = _name;
}
}
// low-level access to mesh