From fd0044a27033d0d8b7aec7a72283f7b0cb5adea7 Mon Sep 17 00:00:00 2001 From: jonjenssen Date: Mon, 18 Mar 2024 13:34:29 +0100 Subject: [PATCH] Make sure other pick editors are updated when polygon in view is changed --- .../ProjectDataModel/Polygons/RimPolygonInView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp index 2eb2761426..e3f4776779 100644 --- a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp +++ b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp @@ -233,6 +233,12 @@ void RimPolygonInView::updatePolygonFromTargets() points.push_back( target->targetPointXYZ() ); } m_polygon->setPointsInDomainCoords( points ); + + // update other pick editors, make sure we don't update ourselves + m_polygon->coordinatesChanged.block( this ); + m_polygon->coordinatesChanged.send(); + m_polygon->coordinatesChanged.unblock( this ); + m_polygon->objectChanged.send(); } }