Update bounding box of parts in polyline part manager

The part visualization was missing in some cases due to an invalid bounding box
This commit is contained in:
Magne Sjaastad 2024-02-08 14:15:07 +01:00
parent dc1e675b37
commit 573a8f78cf

View File

@ -107,6 +107,7 @@ void RivPolylinePartMgr::buildPolylineParts( const caf::DisplayCoordTransform* d
cvf::ref<cvf::Part> part = new cvf::Part;
part->setName( "RivPolylinePartMgr" );
part->setDrawable( drawableGeo.p() );
part->updateBoundingBox();
caf::MeshEffectGenerator effgen( polylineDef->lineColor() );
effgen.setLineWidth( polylineDef->lineThickness() );
@ -177,6 +178,7 @@ void RivPolylinePartMgr::buildPolylineParts( const caf::DisplayCoordTransform* d
cvf::ref<cvf::Part> part = new cvf::Part;
part->setName( "RivPolylinePartMgr" );
part->setDrawable( vectorDrawable.p() );
part->updateBoundingBox();
part->setEffect( new cvf::Effect() );
part->setPriority( RivPartPriority::PartType::MeshLines );