From 23e16d3b4911d36e91110b34b5a24db95c5b5c27 Mon Sep 17 00:00:00 2001 From: Arnaud TANGUY Date: Thu, 1 Feb 2024 18:06:35 +0100 Subject: [PATCH] [GUI] Fix publishing of Visual scaleV --- src/mc_rbdyn/configuration_io.cpp | 4 ++-- tests/testJsonIO.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mc_rbdyn/configuration_io.cpp b/src/mc_rbdyn/configuration_io.cpp index 53291c6e4d..23282b415d 100644 --- a/src/mc_rbdyn/configuration_io.cpp +++ b/src/mc_rbdyn/configuration_io.cpp @@ -685,7 +685,7 @@ rbd::parsers::Geometry::Mesh ConfigurationLoader:: { rbd::parsers::Geometry::Mesh m; m.filename = static_cast(config("filename")); - m.scale = config("scale"); + m.scaleV = config("scaleV"); return m; } @@ -693,7 +693,7 @@ mc_rtc::Configuration ConfigurationLoader::save(co { mc_rtc::Configuration config; config.add("filename", m.filename); - config.add("scale", m.scale); + config.add("scaleV", m.scaleV); return config; } diff --git a/tests/testJsonIO.cpp b/tests/testJsonIO.cpp index 6f351063df..77bfd33dd3 100644 --- a/tests/testJsonIO.cpp +++ b/tests/testJsonIO.cpp @@ -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)