Skip to content

Commit

Permalink
[GUI] Fix publishing of Visual scaleV
Browse files Browse the repository at this point in the history
  • Loading branch information
arntanguy committed Feb 2, 2024
1 parent 585c5db commit e5cabaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mc_rbdyn/configuration_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,15 +685,15 @@ rbd::parsers::Geometry::Mesh ConfigurationLoader<rbd::parsers::Geometry::Mesh>::
{
rbd::parsers::Geometry::Mesh m;
m.filename = static_cast<std::string>(config("filename"));
m.scale = config("scale");
m.scaleV = config("scaleV");
return m;
}

mc_rtc::Configuration ConfigurationLoader<rbd::parsers::Geometry::Mesh>::save(const rbd::parsers::Geometry::Mesh & m)
{
mc_rtc::Configuration config;
config.add("filename", m.filename);
config.add("scale", m.scale);
config.add("scaleV", m.scaleV);
return config;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testJsonIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ bool operator==(const Geometry::Sphere & lhs, const Geometry::Sphere & rhs)

bool operator==(const Geometry::Mesh & lhs, const Geometry::Mesh & rhs)
{
return lhs.filename == rhs.filename && lhs.scale == rhs.scale;
return lhs.filename == rhs.filename && lhs.scaleV == rhs.scaleV;
}

bool operator==(const Geometry::Superellipsoid & lhs, const Geometry::Superellipsoid & rhs)
Expand Down

0 comments on commit e5cabaa

Please sign in to comment.