Skip to content

Commit

Permalink
IO_OCC: indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Apr 11, 2024
1 parent 09dbd50 commit edd91b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 7 additions & 4 deletions src/io_occ/io_occ_gltf_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ class OccGltfReader::Properties : public OccBaseMeshReaderProperties {
Properties(PropertyGroup* parentGroup)
: OccBaseMeshReaderProperties(parentGroup)
{
this->skipEmptyNodes.setDescription(
textIdTr("Ignore nodes without geometry(`Yes` by default)"));
this->skipEmptyNodes.setDescription(
textIdTr("Ignore nodes without geometry(`Yes` by default)")
);
this->useMeshNameAsFallback.setDescription(
textIdTr("Use mesh name in case if node name is empty(`Yes` by default)"));
textIdTr("Use mesh name in case if node name is empty(`Yes` by default)")
);
}

void restoreDefaults() override {
void restoreDefaults() override
{
OccBaseMeshReaderProperties::restoreDefaults();
this->skipEmptyNodes.setValue(true);
this->useMeshNameAsFallback.setValue(true);
Expand Down
2 changes: 1 addition & 1 deletion src/io_occ/io_occ_gltf_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class OccGltfReader : public OccBaseMeshReader {
private:
class Properties;
Parameters m_params;
mutable RWGltf_CafReader m_reader;
RWGltf_CafReader m_reader;
};

} // namespace IO
Expand Down
6 changes: 4 additions & 2 deletions src/io_occ/io_occ_obj_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ class OccObjReader::Properties : public OccBaseMeshReaderProperties {
: OccBaseMeshReaderProperties(parentGroup)
{
this->singlePrecisionVertexCoords.setDescription(
textId("Single precision flag for reading vertex data(coordinates)").tr());
textId("Single precision flag for reading vertex data(coordinates)").tr()
);
}

void restoreDefaults() override {
void restoreDefaults() override
{
OccBaseMeshReaderProperties::restoreDefaults();
this->singlePrecisionVertexCoords.setValue(false);
}
Expand Down

0 comments on commit edd91b3

Please sign in to comment.