Skip to content
Snippets Groups Projects

[fix] Allow applying a property to a proxy of the same group in LoadLidarState

Merged MelanieCarriere requested to merge allowApplyPropertyToTheProxyGroup into master
All threads resolved!
Files
3
@@ -91,6 +91,14 @@ void lqLoadLidarStateReaction::onTriggered()
std::string propertyName = currentProp.propertyName;
vtkSMProxy* lidarProxy = SearchProxyByName(lidarCurrentProxy, proxyName);
// If the proxy is not found, search proxy from the same proxygroup
// ex : Apply a property from an other LidarPacketInterpreter to the current one
if (lidarProxy == nullptr)
{
std::string proxyGroupName = GetGroupName(lidarCurrentProxy, proxyName);
lidarProxy = SearchProxyByGroupName(lidarCurrentProxy, proxyGroupName);
}
if (lidarProxy == nullptr)
{
std::string message = "No matching proxy found. Property " + propertyName + " of the proxy " + proxyName + " not applied";
Loading