Sector export: Exclude refinement region wireframe from mouse picking

Skip pick items with no cvf source info in both pick paths
(displayContextMenu and findFirstItems). Without this, the refinement
region wireframe — which has no source info — became the topmost hit,
causing the picking handler to bail out and leaving Result Info empty
instead of falling through to the underlying cell.
This commit is contained in:
Kristian Bendiksen committed 2026-04-29 13:14:49 +02:00
1 parent 2b52193e90
commit 663142be71
1 file changed
+11
@@ -221,6 +221,13 @@ void RiuViewerCommands::displayContextMenu( QMouseEvent* event )
for ( const auto& pickItem : pickItemInfos )
{
if ( !pickItem.sourceInfo() )
{
// Skip preview-only geometry without source info (e.g. refinement region wireframes),
// so the pick falls through to the underlying cell.
continue;
}
const RivObjectSourceInfo* objectSourceInfo = dynamic_cast<const RivObjectSourceInfo*>( pickItem.sourceInfo() );
if ( objectSourceInfo && dynamic_cast<RimWellPathComponentInterface*>( objectSourceInfo->object() ) )
{
@@ -1164,6 +1171,10 @@ void RiuViewerCommands::findFirstItems( Rim3dView* main
for ( size_t i = 0; i < pickItemInfos.size(); i++ )
{
// Skip preview-only geometry without source info (e.g. refinement region wireframes), so
// the pick falls through to the underlying cell instead of clearing Result Info.
if ( !pickItemInfos[i].sourceInfo() ) continue;
// If hit item is nnc and is close to first (none-nnc) hit, store nncpart and face id
bool canFindRelvantNNC = true;