fix indentation and add comments
This commit is contained in:
@@ -562,7 +562,6 @@ bool _OMReader_::read_binary_face_chunk(std::istream &_is, BaseImporter &_bi, Op
|
|||||||
{
|
{
|
||||||
Chunk::PropertyName property_type;
|
Chunk::PropertyName property_type;
|
||||||
bytes_ += restore(_is, property_type, _swap);
|
bytes_ += restore(_is, property_type, _swap);
|
||||||
|
|
||||||
add_generic_property(property_type, _bi);
|
add_generic_property(property_type, _bi);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -738,7 +737,6 @@ bool _OMReader_::read_binary_mesh_chunk(std::istream &_is, BaseImporter &_bi, Op
|
|||||||
{
|
{
|
||||||
Chunk::PropertyName property_type;
|
Chunk::PropertyName property_type;
|
||||||
bytes_ += restore(_is, property_type, _swap);
|
bytes_ += restore(_is, property_type, _swap);
|
||||||
|
|
||||||
add_generic_property(property_type, _bi);
|
add_generic_property(property_type, _bi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -620,8 +620,7 @@ size_t _OMWriter_::store_binary_custom_chunk(std::ostream& _os,
|
|||||||
// 2. property name
|
// 2. property name
|
||||||
bytes += store( _os, OMFormat::Chunk::PropertyName(_bp.name()), _swap );
|
bytes += store( _os, OMFormat::Chunk::PropertyName(_bp.name()), _swap );
|
||||||
|
|
||||||
// 3. data type
|
// 3. data type needed to add property automatically, supported by version 2.1 or later
|
||||||
|
|
||||||
if(_OMWriter_::version_ > OMFormat::mk_version(2,1))
|
if(_OMWriter_::version_ > OMFormat::mk_version(2,1))
|
||||||
{
|
{
|
||||||
OMFormat::Chunk::PropertyName type = OMFormat::Chunk::PropertyName(_bp.get_storage_name());
|
OMFormat::Chunk::PropertyName type = OMFormat::Chunk::PropertyName(_bp.get_storage_name());
|
||||||
|
|||||||
@@ -1598,7 +1598,7 @@ void do_all_property_types(MeshT& _mesh, PropertyAction action)
|
|||||||
// do_property<MeshT, HandleT, bool> (_mesh, action);
|
// do_property<MeshT, HandleT, bool> (_mesh, action);
|
||||||
// do_property<MeshT, HandleT, std::vector<int>> (_mesh, action);
|
// do_property<MeshT, HandleT, std::vector<int>> (_mesh, action);
|
||||||
// do_property<MeshT, HandleT, std::vector<double>> (_mesh, action);
|
// do_property<MeshT, HandleT, std::vector<double>> (_mesh, action);
|
||||||
// do_property<MeshT, HandleT, std::vector<float>> (_mesh, action);
|
// do_property<MeshT, HandleT, std::vector<float>> (_mesh, action);
|
||||||
// do_property<MeshT, HandleT, std::vector<char>> (_mesh, action);
|
// do_property<MeshT, HandleT, std::vector<char>> (_mesh, action);
|
||||||
// do_property<MeshT, HandleT, std::vector<bool>> (_mesh, action);
|
// do_property<MeshT, HandleT, std::vector<bool>> (_mesh, action);
|
||||||
do_all_property_types_vec_all_dim<MeshT, HandleT>(_mesh, action);
|
do_all_property_types_vec_all_dim<MeshT, HandleT>(_mesh, action);
|
||||||
|
|||||||
Reference in New Issue
Block a user