From 2347a742b2dfe5a8c39baddbecfdd2c7da91963a Mon Sep 17 00:00:00 2001 From: jonjenssen Date: Fri, 6 Dec 2024 14:09:58 +0100 Subject: [PATCH] Fix feedback in editor updates stopping polygon point updates --- ApplicationLibCode/ProjectDataModel/Polygons/RimPolygon.cpp | 1 - .../ProjectDataModel/Polygons/RimPolygonInView.cpp | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygon.cpp b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygon.cpp index 438af37396..725fab5676 100644 --- a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygon.cpp +++ b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygon.cpp @@ -202,7 +202,6 @@ void RimPolygon::fieldChangedByUi( const caf::PdmFieldHandle* changedField, cons RimPolygonTools::activate3dEditOfPolygonInView( this, activeView ); m_editPolygonButton = false; - return; } objectChanged.send(); diff --git a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp index 960c304058..f7d1ad7d0e 100644 --- a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp +++ b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonInView.cpp @@ -401,7 +401,11 @@ void RimPolygonInView::appendMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder //-------------------------------------------------------------------------------------------------- void RimPolygonInView::onObjectChanged( const caf::SignalEmitter* emitter ) { - updateConnectedEditors(); + // make sure name is in sync + if ( dynamic_cast( emitter ) ) + { + setName( m_polygon->name() ); + } updateVisualization(); }